First , in order to troubleshoot this issue , you need to be sure that ssh is enabled . How ?
- power off the machine from VMware workstation or vSphere , or suspend it.
- power it on
- after entering user/pass , you’ll be asked to select which mode to enter , check security (5)
- if appears disable ssh , then ssh is enabled . if not , then enable it .
- if then is not your problem , then enter the debugging mode (7) and do the following:
write down the command : $ ls -al /etc/ssh/ssh*key
if appears nothing , or zero as it shows in the picture , then you need to re-generate ssh key using the following command:
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
and then click Enter twice .
This should solve your problem .
If not , back to “secuirty (5)” section , and try disabling firewall .
Note: For more information regarding ssh keys , visit the following site.