![](/img/trans.png)
[英]Not able to execute command in remote machine Using Net::SSH::Expect
[英]not able to ssh to remote 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登錄超時。 輸入流當前具有以下內容:root@9.118.46.36的密碼:在/usr/local/share/perl/5.14.2/Expect.pm第828行
我將超時時間增加到30,並且可以正常工作...有什么方法可以檢查超時時間。 由於系統負載增加,超時30也可能不起作用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.