xshell4链接ubuntu系统,报错No matching outgoing encryption,没有匹配的算法。linux
xshell4链接centos、redhat没有问题。因而怀疑是否是远程链接工具的问题,因为就用putty链接,putty可以远程链接ubuntu系统,没有问题;算法
因为就在网上搜索解决办法,发现是加密算法没有匹配,而linux系统的加密算法通常都放在/etc/ssh/sshd_config中,在配置文件中加入下面三行的配置信息,重启sshd服务,解决问题。shell
解决步骤:ubuntu
1. sudo vi /etc/ssh/sshd_configcentos
#在/etc/ssh/sshd_config中增长上述的三行配置信息ssh
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbcide
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加密
2.重启sshd服务3d