scp上传文件出错

echo "KexAlgorithms diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1" >>/etc/ssh/ssh_config.d/weak.conf
 

修改/etc/ssh/ssh_config文件的配置,以后则不会再出现此问题

最后面添加:

StrictHostKeyChecking no

posted @ 2022-02-23 00:14  MoonXu  阅读(246)  评论(0)    收藏  举报