ssh 阻塞问题net work unreachable
最近设备调试中遇到,从跳板服务器ssh 到现场机树莓派报 network unreachable,
在现场树莓派设备中使用调试命令 ssh -vvv Myserver or ssh -v Myserver查看 ,阻塞于
expecting SSH2_MSG_KEX_ECDH_REPLY
参考内容
The solution was found here: SSH works in putty but not terminal
in Ubuntu 13.10/12.10, login and gain sudo access.
Edit /etc/ssh/ssh_config
, uncomment the following lines
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc GSSAPIAuthentication yes GSSAPIDelegateCredentials no MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
Add the following line
HostKeyAlgorithms ssh-rsa,ssh-dss
You should end up with your /etc/ssh/ssh_config
file looking like this
Host * Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 SendEnv LANG LC_* HashKnownHosts yes GSSAPIAuthentication yes GSSAPIDelegateCredentials no HostKeyAlgorithms ssh-rsa,ssh-dss
Now run ssh -T -v git@github.com
and it will ask you to add the server to your known hosts file. Hit yes, and then it should welcome you to the server.