SSH 连接 Linux 服务 报错 server responded algorithm negotition
2017-11-01 14:28
225 查看
修改 /etc/sshd_config
用 vim sshd_config
输入 i 进入编辑模式
在最下方添加
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
UseDNS no
AddressFamily inet
PermitRootLogin yes
SyslogFacility AUTHPRIV
PasswordAuthentication yes
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
然后 esc 退出编辑模式
输入 :wq 保存并退出
最后重启 ssh 服务 命令:
sudo service ssh restart
用 vim sshd_config
输入 i 进入编辑模式
在最下方添加
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
UseDNS no
AddressFamily inet
PermitRootLogin yes
SyslogFacility AUTHPRIV
PasswordAuthentication yes
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
然后 esc 退出编辑模式
输入 :wq 保存并退出
最后重启 ssh 服务 命令:
sudo service ssh restart
相关文章推荐
- linux下SSH远程连接服务慢解决方案
- linux下SSH远程连接服务慢解决方案
- WIN系统ssh连接Linux中文乱码的问题,附带Ubuntu安装ssh服务
- Linux配置SSH服务以便实现远程连接
- linux下SSH远程连接服务慢解决方案
- linux学习入门 基础部分(8)【1.openssh2.在客户端连接sshd的方式3.给ssh服务添加新的认证方式 KEY认证 4.sshd的安全配 5.linux中服务的管理】
- linux下SSH远程连接服务慢解决方案
- Java用ssh连接Linux服务报Segmentation fault (core dumped)解决
- Linux配置SSH服务以便实现远程连接
- Linux安全攻略 SSH服务连接时常见问题解答(很给力)
- linux下SSH远程连接服务慢解决方案
- Linux实战教学笔记05:远程SSH连接服务与基本排错(新手扫盲篇)
- 解决 Linux 下 SSH 远程连接服务卡慢的全过程
- linux下SSH远程连接服务慢解决方案
- 使用SSH连接linux服务器重启Tomcat服务
- 解决 Linux 下 SSH 远程连接服务卡慢的全过程
- 远程连接Linux (Ubuntu配置SSH服务) 端口22
- linux下SSH远程连接服务慢解决方案
- 用ssh客户端连接linux启动服务,客户端关闭服务就断掉问题