Fix Raspbian SSH Error “Connection reset by peer”

Fix Raspbian SSH Error “Connection reset by peer”

February 15, 2018 Raspberry Pi 2


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

ssh pi@
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

Share this:


2 Responses

  1. I needed to thank you for this good read!! I absolutely loved every little bit of it.
    I have got you book marked to check out new stuff you post…

  2. I, studүіng this material, only wanted
    ԝould sսggeѕt
    resource owjer upⅼօad
    a little more
    entertaining tips
    😉 Maybe, you can write
    next articles , related to this tߋpic
    … I want find out even more
    important to me in this
    dіrection !!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.