I’m trying to set up a non-standard SSH port (for example: 53425) instead of the default port 22 - on Ubuntu Server 16.04. For some reason, I can’t SSH into the server via Putty. Here is what I’ve done:
- I edited the /etc/ssh/sshd_config file and changed the port from 22 to 53425.
- I restarted the sshd service to update the changes.
- I installed UFW and allowed port 53425.
- I reloaded UFW and rebooted server.
- I looked into the logs /var/log/auth.log and confirmed "Server listening on 0.0.0.0 port 53425.
- I updated Putty to connect to port 53425 instead of 22.
- Nothing happens, no login prompt, and a timeout connection error appears.
It seems like this should be a really simple thing to do, but for some reason it’s not working. Am I doing something wrong here? I’ve asked this question in the Ubuntu forums, but can’t seem to get a solution that works. Is this a Dreamhost-specific restriction?