climbjm Posted September 18, 2009 Share Posted September 18, 2009 What I am trying to do is use the PHP SSH2 functions to tunnel into a linux box and login. However SSH2 fails because the system I am logging into asks for two usernames and two passwords so I need to catch both using a regex. Currently I have a PHP script executing a perl script trying to use expect to do this, but I'd prefer to do this all in PHP. :'( Any thoughts or ideas? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/174711-php-expect-like-perl/ Share on other sites More sharing options...
climbjm Posted September 18, 2009 Author Share Posted September 18, 2009 No go huh? Quote Link to comment https://forums.phpfreaks.com/topic/174711-php-expect-like-perl/#findComment-920932 Share on other sites More sharing options...
trq Posted September 19, 2009 Share Posted September 19, 2009 Did you try looking in the manual? Quote Link to comment https://forums.phpfreaks.com/topic/174711-php-expect-like-perl/#findComment-921009 Share on other sites More sharing options...
climbjm Posted September 30, 2009 Author Share Posted September 30, 2009 thorpe, wow! I didnt see this when I was looking. Totally looking in the wrong spot! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/174711-php-expect-like-perl/#findComment-927822 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.