xshell4连接ubuntu,报错No matching outgoing encryption
2018-09-05 09:06
2291 查看
xshell4连接ubuntu系统,报错No matching outgoing encryption,没有匹配的算法。
xshell4连接centos、redhat没有问题。于是怀疑是不是远程连接工具的问题,由于就用putty连接,putty能够远程连接ubuntu系统,没有问题;
由于就在网上搜索解决办法,发现是加密算法没有匹配,而linux系统的加密算法一般都放在/etc/ssh/sshd_config中,在配置文件中加入下面三行的配置信息,重启sshd服务,解决问题。
解决步骤:
1. sudo vi /etc/ssh/sshd_config
#在/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
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服务
xshell4连接centos、redhat没有问题。于是怀疑是不是远程连接工具的问题,由于就用putty连接,putty能够远程连接ubuntu系统,没有问题;
由于就在网上搜索解决办法,发现是加密算法没有匹配,而linux系统的加密算法一般都放在/etc/ssh/sshd_config中,在配置文件中加入下面三行的配置信息,重启sshd服务,解决问题。
解决步骤:
1. sudo vi /etc/ssh/sshd_config
#在/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
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服务
相关文章推荐
- xshell连接ubuntu虚拟机(NAT模式)
- 用xshell连接ubuntu
- Xshell和Xftp连接ubuntu
- 使用Xshell连接Ubuntu
- xshell连接win10 Hyper-v中的Ubuntu系统
- xshell 连接Ubuntu 没有ssh-agent
- xshell连接ubuntu
- 【Ubuntu】Xshell无法连接Vmare下安装的Ubuntu12.04的解决方案
- 使用Xshell连接Ubuntu
- Xshell无法连接Ubuntu的解决办法
- Xshell连接不上Ubuntu的解决方法
- Xshell无法连接Ubuntu,但能够ping通虚拟机
- xshell不能连接VM中的ubuntu
- Xshell 无法连接虚拟机中的ubuntu的问题
- 本地搭建Hadoop伪分布式环境之二:XShell连接Ubuntu
- xshell连接虚拟机Ubuntu问题
- VMware下Ubuntu虚拟机NAT模式 连接Xshell
- 客户机通过xShell远程访问Ubuntu15.04/16.04LTS连接失败的解决方法
- Xshell 连接ubuntu16.04下的OpenSSH报错
- ubuntu与xshell连接不起来