[SOLVED] Connecting to SSH remote with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

[SOLVED] Connecting to SSH remote with PHP

Post by William »

Dear All,

I am currently working with a company and I need to make a script that connects to the SSH and installs a gaming server, So I want to basicly learn how to login, and execute a command using SSH, The rest I can figure out but I can figure out how to login using fsockopen(), Any ideas? Thanks
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

Ah nvm, Thanks though. I am going to make it so it exec() on current machine and runs key's to connect to another. Thanks all.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

you might want to check out the ssh extension... pecl.php.net
Post Reply