ssh_exchange_identification: read: Connection reset by peer Ask Question

October 11, 2017 74 views
Nginx Ubuntu

I have a droplet on Digital Ocean. Its credentials are shared with one of my friend. We used to connect to it via ssh as:

ssh root@IP_Address
Now due to lack of concentration we did a mistake by running the following command while on the server: sudo chmod -R 777 /
due to which server is not connecting anymore via anything (SSH/SCP/FTP/...) and is giving the following error: sshexchangeidentification: read: Connection reset by peer

Following is the output of ssh root@IP_Address -vv

OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug2: resolving "IP_Address" port 22 
debug2: ssh_connect_direct: needpriv 0 
debug1: Connecting to IP_Address [IP_Address] port 22. 
debug1: Connection established. 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_rsa type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_rsa-cert type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_dsa type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_dsa-cert type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_ecdsa type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_ecdsa-cert type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_ed25519 type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/talha/.ssh/id_ed25519-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 
ssh_exchange_identification: read: Connection reset by peer 

Kindly help me ASAP as I don't have latest backup of hosted projects and databases.

Thank you in advance!

1 comment
  • You are doomed. Start over. Next time, be careful while you are "root".

Be the first one to answer this question.