ssh sx@192.168.8.183
The authenticity of host '192.168.8.183 (192.168.8.183)' can't be established.
ECDSA key fingerprint is SHA256:nUbJ9W2CafhhhKckasm96jdj6DOq2J+lEhYxMYfEB9k.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.8.183' (ECDSA) to the list of known hosts.
Received disconnect from 192.168.8.183 port 22:2: Too many authentication failures
Disconnected from 192.168.8.183 port 22
解决方法:
1.临时连上去的方法 :
ssh sx@192.168.8.183 -o PubkeyAuthentication=no
2.根本解决办法,修改目标主机sx@192.168.8.183 中的MaxAuthTries 值
sudo vim /etc/ssh/sshd_config
最后加上一行,如果存在直接修改,设置为50即可:
MaxAuthTries 50
本文解决了一个常见的SSH连接问题,当尝试连接到远程服务器时遇到过多的认证失败,通过临时禁用公钥认证和调整目标主机的MaxAuthTries值来解决。

7185

被折叠的 条评论
为什么被折叠?



