为什么不能通过SSHlogin到服务器?

networking连接正常,因为我可以ping该服务器。 但是,我无法通过任何用户SSH连接。 输出如下,

Auth User/Pass with PS...fail...Please reconnect!. Connection to xxx closed. 

我的密码没有问题。 是否由于任何高负载平均值或错误configuration?

这是input我的密码后的详细输出,

 debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US Auth User/Pass with PS...fail...Please reconnect!. debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 Connection to xxx closed. Transferred: sent 1640, received 1256 bytes, in 0.2 seconds Bytes per second: sent 7131.6, received 5461.8 debug1: Exit status 0 

从一些基础开始。

  • 服务器是否运行SSH服务?
  • 服务器上是否打开了相应的端口?
  • 服务器是否接受来自客户端地址的SSH连接?
  • 你是否试图在正确的端口上访问它?

如果你从服务器ssh到127.0.0.1,你会得到同样的错误? 我有一个问题,原来是一个腐败的身份validation密钥的SSH。

你还在用什么版本的Linux? 请注意,root在某些发行版中默认情况下不能通过sshlogin

您可以运行顶部来查看是否有逃跑的过程。 除非你的服务器真的非常繁忙,否则我认为ssh仍然可以工作。

我刚刚遇到错误“ 身份validation用户/传递与PS …失败…请重新连接! ”,原来我试图连接到IPMI地址,而不是主机本身。

希望有所帮助!