The most common reason why you can't connect to port 22 (SSH) is because your firewall blocks it. Check your firewall settings if your computer's communications with the rest of your system doesn't work.