Fix Raspbian SSH Error "Connection reset by peer"

in #raspberrypi8 years ago

If you set up a fresh Raspberry Pi with Raspbian and you can't connect with ssh due to:

ssh [email protected]
Read from socket failed: Connection reset by peer


Solution: Log in on your Pi. Delete and regenerate ssh server keys:

sudo rm /etc/ssh/ssh_host_* 
sudo dpkg-reconfigure openssh-server 
 

Source: Raspberry Pi Forums

Coin Marketplace

STEEM 0.13
TRX 0.35
JST 0.034
BTC 115141.79
ETH 4533.39
SBD 0.86