Ubuntu – SSH Secure Shell 无法登录:server responded “algorithm negotiation failed”
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目录

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