SSH Connection failed: ssh_exchange_identification: read: Connection reset by peer

Hey guys,

I can neither call the web interface over the internet nor log in via SSH.

I get the following error message with ssh -vv pi@anonym.duckdns.org

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to anonym.duckdns.org [0000:00:0000:0000:0000:0000:0000:0000] port 22.
debug1: connect to address 0000:00:0000:0000:0000:0000:0000:0000 port 22: Permission denied
debug1: Connecting to anonym.duckdns.org [00.000.00.000] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.10
ssh_exchange_identification: read: Connection reset by peer

Can someone help me with this Problem? :slight_smile:

To see what’s wrong: would you please check (and probably post) the server’s ssh config. Do you have password ident enabled? If you don’t - where did you put the public key of your client to? You took the clients’s public key to the server do you :slight_smile:

Not sure but I think you have a routing problem. The ipv6 address with only zeros afaik refers to the loopback interface, so afaics you are trying to connect to your own machine.

Figure out a the real ip address and then try a
telnet 1.2.3.4 22
to check is the ssh service is listening to this port. 1.2.3.4 being the ipv4 or ipv6 address of your server of course.