**[Quick Solution] for ssh: connect to host port 22: Connection refused and ssh_exchange_identification: read: Connection reset by peer

untitledSo i just faced this, and i immediatelly got it. It’s ARP stuff.
If you are trying to connect to your ssh remote shell and you see this:

MacBook-Pro-di-giuseppe-urso:~ giuseppeurso$ ssh -l giuseppe
ssh: connect to host port 22: Connection refused
MacBook-Pro-di-giuseppe-urso:~ giuseppeurso$ ssh -l giuseppe
ssh_exchange_identification: read: Connection reset by peer

It means you just changed the ip address (probably from DHCP to Static) of your Debian machine and you are trying to reconnect too quickly, that’s why the prevoius ARP is still “in the air” so, if you have rush you can:
Restart you router/switch
If it is a virtual machine just add a fresh ip address, regenerate the MAC Address and reboot.


(Visited 11,510 times, 1 visits today)

Author: Giuseppe Urso

Giuseppe lives in Haarlem now with his shiny dog, Filippa In 1982 received his first home computer, a Commodore 64, followed by Datasette and a 1541 Floppy Disk Drive. In 1999 he installed his first Linux distro (LRH6). In 2006 he switched to Debian as favourite OS. Giuseppe Urso actively sustains the Free Software Fundation and his founder Richard Mattew Stallman, he speaks to people trying to convince them to join the fight now, and about how important is to use Free Software only. He has a job as Infra Specialist at Hippo Enterprise Java Cms an Open Source Enterprise class Content Management System, one of the coolest company ever, in Amsterdam. He's always ready to install Debian on other people computers for free.

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.