I'd double-check the password just to be sure, but if you are sure then it might be something such as a missing "\n" (or newline)
You could test for that by changing your code to read:
my $pass = 'passw0rd'; $result = $ssh->send($pass . "\n" );
In reply to Re: Change user to root using ssh::expect
by skx
in thread Change user to root using ssh::expect
by want2bemonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |