简体   繁体   English

无法SSH到远程计算机

[英]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.

相关问题 无法使用 Net::SSH::Expect 在远程机器上执行命令 - Not able to execute command in remote machine Using Net::SSH::Expect ssh在perl中打开远程计算机上的文件 - ssh to open a file on a remote machine in perl 使用Net :: SSH :: Perl登录到远程计算机 - Using Net::SSH::Perl to login to remote machine 使用带有密钥的Perl CGI脚本问题,无法SSH到另一台计算机 - Not able to ssh to another machine using Perl CGI Scripts issue with Keys 无法在我的机器上安装Net :: SSH :: Expect perl模块 - not able to install Net::SSH::Expect perl module in my machine 如何使用Net :: SSH2检查远程机器中是否存在目录 - How to check directory exists in remote machine using Net::SSH2 Perl脚本可使用Putty创建到远程计算机的SSH会话并执行Windows计算机上的命令 - Perl script to create a SSH session to a remote machine using Putty and execute commands from a Windows machine 使用Telnet或SSH与Perl在本地计算机上的远程计算机上运行Perl脚本 - Run a perl script on remote machine from local machine using Telnet or SSH with Perl 从UI访问时无法通过Shell脚本SSH到远程计算机 - Unable to ssh to a remote machine through shell script while accessing it from UI 从 Jenkins 管道运行脚本时,如何通过 ssh 在远程 AIX 机器中加载环境变量? - How to load environment variables in a remote AIX machine through ssh while running script from Jenkin pipeline?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM