skip to main |
skip to sidebar
RSS Feeds
Nope. nothing .. just some random thoughts come to my mind ...
Nope. nothing .. just some random thoughts come to my mind ...
12:28 PM | Wednesday, January 18, 2012
Posted by harshadura
I'm having a really annoying problem on my Ubuntu laptop.
I noticed it today, after upgrading to Ubuntu 11.04, although I'm not
entirely sure this is the cause as I played with my ssh keys a few days
ago.
The problem is, whenever I try to ssh to ANY host I get the following error:
Read from socket failed: Connection reset by peer
sudo vim /etc/ssh/ssh_config
Host *
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
September 26, 2012 at 10:19 AM
it just worked, thanks.
October 19, 2012 at 1:31 PM
Works for MacOS too!
Just copy this section into ~/.ssh/config.
February 6, 2013 at 12:30 AM
Nice post, but it would be great if you explained the reasoning behind why these options solve the problem.
March 6, 2013 at 12:58 PM
It works, but explanation will be helpful also...
March 14, 2013 at 3:17 PM
troubleshooting
tail -f /var/log/auth.log
ssh bill@10.1.2.3 -v
keys
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key