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服務: