错误 利用java连接linux服务器中碰到错误:Key exchange was not finished, connection is closed.,导致服务器的连接失败,报错如下 原因
利用java
连接linux
服务器中碰到错误:Key exchange was not finished, connection is closed.
,导致服务器的连接失败,报错如下
修改配置文件
vi /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
重启服务
service sshd restart
来源地址:https://blog.csdn.net/weixin_45266856/article/details/129754122
--结束END--
本文标题: Key exchange was not finished, connection is closed.解决办法
本文链接: https://lsjlt.com/news/393267.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0