Unable to connect to an ESXi host using SSH although SSH is enabled.
You see the error:
Server unexpectedly closed network connection
The /var/log/auth.log file, you see entries similar to:
2012-12-16T23:46:00Z sshd[636556]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2012-12-16T23:46:00Z sshd[636556]: error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ 2012-12-16T23:46:00Z sshd[636556]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2012-12-16T23:46:00Z sshd[636556]: error: Permissions 0644 for '/etc/ssh/ssh_host_dsa_key' are too open. 2012-12-16T23:46:00Z sshd[636556]: error: It is recommended that your private key files are NOT accessible by others. 2012-12-16T23:46:00Z sshd[636556]: error: This private key will be ignored. 2012-12-16T23:46:00Z sshd[636556]: error: bad permissions: ignore key: /etc/ssh/ssh_host_dsa_key 2012-12-16T23:46:00Z sshd[636556]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key 2012-12-16T23:46:00Z sshd[636556]: Disabling protocol version 2. Could not load host key 2012-12-16T23:46:00Z sshd[636556]: sshd: no hostkeys available -- exiting.
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.