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
My name is Toto Sugito. This is my notes when I try something. Maybe, this is NOT THE BEST SOLUTION for your problems. If you have other method or idea that better with my post, please share in this blog. Thank for visiting my site.