RE: [PHP] Howto send command over ssh using sockets

2010-04-05 Thread Bob McConnell
From: Radek Krejca > I am trying send command to remote host over ssh with sockets. But > I need to set up username/password. I am trying to modify this script > (from www.php.net - function fsockopen), but I dont know, where set > username/password because I got this message: > Bad protocol versi

RE: [PHP] Howto send command over ssh using sockets

2010-04-05 Thread Radek Krejča
Hello, thank you for response, more in you text: Instead of ssh, you could use telnet to connect to the Cisco router (which incidentally runs on port 23, but is likely to be disabled on I want to use my script against FreeBSD router and against RouterOS so I need ssh. I can use system function

Re: [PHP] Howto send command over ssh using sockets

2010-04-04 Thread Hans Åhlin
Instead of ssh, you could use telnet to connect to the Cisco router (which incidentally runs on port 23, but is likely to be disabled on the cisco router, unless you have a pre-SSH capable IOS running on it (like my old cisco crap :( ) ), because i strongly doubt you have written or are willing to