Monday, February 13, 2012

How to solve "ssh: connect to host stop port 22: Connection refused"

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-server
If 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