I'm getting this error when using Putty:
server unexpectedly closed network connection
I try to connect my EC2 ubuntu 14.04 LTS Instance using putty, and also i generate pem key to ppk key then i upload ppk key in putty and try to connect my Instance.
A PuTTY session left idle will disconnect at a time determined by the host server. You can enable keep-alives in PuTTY to prevent the session from timing out.
To create and save a new keep-alive connection, follow these steps:
To use the modified session settings, select it from the "Saved sessions" list, then click the buttons marked "Load" and "Open".
If your connected sessions still time out, enter a lower number of seconds into the "Seconds between keepalives" value.
On searching more I also got a point that:
"Uncheck 'Attempt GSSAPI authentication (SSH-2 only)' in Putty: Category - Connection - SSH - Auth - GSSAPI
In my case it seems to be GSSAPI is incompatible to a Ubuntu host that uses Beyond trust (formerly: likewise open)."