If you are trying to connect to a machine through ssh and you are getting the following error, probably it's because you have not installed 'openssh-server' on the machine that you are trying to connect to.Simply use the following command to install 'openssh-server'.
$ sudo apt-get install openssh-serverIf you have installed 'openssh-server' and still seeing the same problem, then you might need to start sshd using the following command
$ sudo /etc/init.d/sshd start