Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon ssh_exchange_identification: read: Connection reset by peer: when changing permissions

Tags:

I went on to my amazon ec2 successfully and I have been experimenting around. I found it annoying that I needed to always run sudo on everything so what I decided to do was to go to the route directory and change the permissions of everything to write, write, and execute.

I did so doing the following

chmod -R 777 . 

I then exited out of the server.

The next time I tried to logon I got

"ssh_exchange_identification: read: Connection reset by peer" 

How can I fix this?

Thank you

like image 635
applecrusher Avatar asked Aug 23 '14 15:08

applecrusher


People also ask

What is the meaning of connection closed by peer?

“connection reset by peer meaning” is the TCP / IP equivalent of locking the phone back on the hook. Or, it simply means that the device encounters a network error when receiving data from the server. It's more polite than just not responding and leaving someone hanging out.


1 Answers

My solution is probably trivial, but who knows who it could help:

I simply rebooted my EC2 instance in the browser (AWS -> EC2 Dashboard -> instances -> (select your instance) -> (click the action dropdown) -> Instance State -> Reboot

You may want to give it a minute before you try you ssh connection command again. Hope that helps someone.

like image 104
Nick Avatar answered Oct 09 '22 05:10

Nick