in reply to Net::SSH::Expect problem
I have never used that module but did a quick test and got the same behaviour
I added this line from the documentation and it did die
($ssh->read_all(2) =~ />\s*\z/) or die "where's the remote prompt?";
Looking in the logs on the machine I was accessing it was a problem with the password. Hope that helps, sorry I don't have time to test further right now.
|
|---|