无法登录到计算机...但是我可以使用相同的凭据登录到机器
my $ssh = Net::SSH::Expect->new (host => "9.118.46.36", password=> 'test01', user => 'root', raw_pty => 1, timeout => 20);
# establishes the ssh connection,
# authenticating with that user and password
$ssh->login();SSHAuthenticationError登录超时。输入流当前的内容如下:root@9.118.46.36的密码: at /usr/local/share/perl/5.14.2/Expect.pm第828行
发布于 2012-07-23 15:00:18
我把超时时间增加到30,它就起作用了……有没有办法检查应该超时到什么时候。随着系统负载的增加,超时30也可能不起作用。
https://stackoverflow.com/questions/11607676
复制相似问题