in reply to Change user to root using ssh::expect

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" );
Steve
--