October 19, 2011
port 22: Connection refused
This day, I try to connect with ssh command to other computer and get this error message port 22: Connection refused. I try to enable or disable firewall and get same error port 22: Connection refused. If you get this error message, the best solution is try to disable your firewall.
If your firewall is not active, try to restart your sshd daemon. Use this command to solve error message port 22: Connection refused :
sudo service sshd stop
sudo service sshd start
First, stop your ssh daemon and try to start again (restart daemon). With this method, I solve error message port 22: Connection refused.Source : http://forums.fedoraforum.org/showthread.php?t=259571