问题
docker容器之间,ssh连接时卡住,使用ssh -v root@10.0.0.2后,发现进程卡在:debug1: expecting SSH2_MSG_KEX_ECDH_REPLY。尝试改小mtu无效,最后找到以下办法,成功解决:
解决办法
1. 临时解决
ssh -o KexAlgorithms=ecdh-sha2-nistp521 root@10.0.0.2
2. 修改配置文件
# 修改/etc/ssh/ssh_config文件,最后一行添加:
KexAlgorithms ecdh-sha2-nistp521