1摩渺、檢查ssh的服務(wù)是否正常儿倒,如果不正常掰吕,或者報(bào)錯(cuò)果覆,卸載重新安裝
卸載:sudo apt-get remove openssh-server
安裝:sudo?apt-get install?openssh-server
查看服務(wù)狀態(tài):sudo service ssh status
2、sudo vim /etc/ssh/sshd_config 通過命令在配置文件中增加如下內(nèi)容:
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,umac-64@openssh.com,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,curve25519-sha256@libssh.org
3殖熟、重啟sshd服務(wù)局待,輸入如下命令:
sudo /etc/init.d/ssh restart
4、接著用工具連接就行了