Linux常见错误_SSH:Ubuntu16.4配置SSH常见问题及解决办法
win10+ubuntu16.4
常见错误1:使用SSH连接Ubuntu出现”Algorithm negotiation failes”
解决办法如下:
1.在ubuntu命令行打开ssh配置文件:
#sudo vim /etc/ssh/sshd_config
2.在 sshd_config配置文件末尾添加:
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]
3.重启sshd服务后,即可正常连接:
sudo /etc/init.d/ssh restart
常见错误2:使用SSH连接Ubuntu输入正确密码后继续弹出输入密码提示框
修改ssh的配置文件:# vim /etc/ssh/sshd_config
注释掉原来的PermitRootLogin 添加PermitRootLogin = yes
重启sshd服务: