Recently, I tried unsuccessfully to SSH to my machine from outside my local network. I found through some Googling that Comcast seems to be blocking port 22. For this reason, and for security, I'm trying to reconfigure my system for SSH over a different port.
So, I edited the "port=" lines in both ssh_config and sshd_config accordingly, and I used the GUI firewall configuration tool to allow TCP connections over my chosen port.
But when I try to open an SSH connection (at this point, I'm still testing over the local network), I get "Connection refused."
As might be expected, I also now get the same result trying to connect over port 22 (which now blocked by the firewall).
Additionally, when I type "netstat -ntlu," I don't see my new port listed.
As a test, I tried clicking on the big red "disable" button in the firewall configuration tool, but I still got the same results. I didn't reboot in between, though (I don't know whether or not that's necessary), and the next time I did reboot, the firewall was back up again.
Is there something I'm missing? What can I tell from my "netstat" results? Does this mean the sshd service isn't listening, or does it mean the port is still being blocked systemwide?
Thanks in advance, folks.