1:首先检查是否安装了ssh(在ubuntu系统中)
如果没有安装就按照提示安装
一般就输入
sudo apt-get install openssh-server或者sudo apt-get install ssh
然后在输入
sudo vim /etc/ssh/sshd_config可能出现vim问题,可以把vim改为vi
也可以输入gedit /etc/ssh/sshd_config打开编辑修改
在配置文件后面添加
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
扫描二维码关注公众号,回复:
2504048 查看本文章
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]
然后保存
重启ssh
sudo /etc/init.d/ssh restart
基本会成功连接。如果有问题请看我下一个博客,因为我就遇到过这样的问题,修改了还是出现了问题