ssh Key exchange was not finished sshd

报错: ssh Key exchange was not finished

则需修改sshd文件  

链接:Key exchange was not finished,connection is closed近期遇到这个错误sshd更新导致的 - it610.com

需在

在/etc/ssh/sshd_config最后添加如下行内容解决问题

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

文件路径: /etc/ssd/sshd_config

如果是只读文件 readonly,不可修改,则使用chmod  777 sshd_config

报错:chmod: Unable to change file mode on ssh_config: Operation not permitted

则需要使用sudo  chmod  777 sshd_config

修改sshd文件应当修改远端,修改完后需要重启sshd服务

重启命令:service sshd restart

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值