OSX Terminal: Solve the “Connection reset by peer” problem
I finally got tired of getting timed out of my server while using Terminal and/or iTerm. Luckily, the fix was easier and less complicated than I imagined. It was a system-wide ssh config fix. Try the following:
1. sudo emacs /etc/ssh_config
2. add a new line "ServerAliveInterval 60"
3. save and exit
That should do it. The next time you ssh (using either Terminal or iTerm), you’ll be sending ‘Keep Alive’ packets every 60 seconds if the client doesn’t receive anything from the server. Optionally, if you have sysadmin access to the server you’re connecting to, you can add
"ClientAliveInterval 60"
in the same location server side.
PrasSarkar.com
No Comments, Comment or Ping