[英]not able to ssh to remote machine
Not able to login to machine... but using the same credential i can log in to the machine 无法登录到计算机...但是可以使用相同的凭据登录到计算机
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 Login timed out. SSHAuthenticationError登录超时。 The input stream currently has the contents bellow: root@9.118.46.36's password: at /usr/local/share/perl/5.14.2/Expect.pm line 828
输入流当前具有以下内容:root@9.118.46.36的密码:在/usr/local/share/perl/5.14.2/Expect.pm第828行
I increased the timeout to 30 and it works... Is there any way to check what should be the time out. 我将超时时间增加到30,并且可以正常工作...有什么方法可以检查超时时间。 As system load increase timeout 30 also may not work.
由于系统负载增加,超时30也可能不起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.