Ubuntu – SSH Secure Shell 无法登录:server responded “algorithm negotiation failed”

0 0 255

vi /etc/ssh/sshd_config

1:最后一行增加这个,亲测可用

KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,aes128-cbc,aes128-ctr,aes256-ctr

Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr(网络上都是这句,不要这句)

2:使用命令 sshd -T 查看,如果缺目录,可以mkdir目录
111

3:重启sshd服务
service sshd restart 或 systemctl status ssh.service

留言

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>