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:

  1. I edited the /etc/ssh/sshd_config file and changed the port to 53425.
  2. I restarted the sshd service to update the changes.
  3. I installed UFW and allowed port 53425.
  4. I reloaded UFW and rebooted computer.
  5. I looked into the logs /var/log/auth.log and confirmed "Server listening on port 53425.
  6. I updated Putty to connect to port 53425 instead of 22.
  7. Nothing happens, no login prompt, and a timeout connection error appears.

It seems like it should be really simple, but for some reason it's not working. Am I doing something wrong here?

Thanks Kind regards

  • Are the client and server on the same network, or a different one? are you trying to connect using a LAN IP or a WAN IP (or hostname)? – steeldriver Oct 18 '17 at 23:10
  • I'm using Putty for SSH on my home computer to connect remotely with a Dreamhost server on the other side of the country. I'm trying to connect to the server's public IP address (hostname). It worked on port 22, but not on 53425. – peppy Oct 18 '17 at 23:16
  • 1
    Is the server hosted on Dreamhost? If so, I would contact Dreamhost about the port forwarding then. – Terrance Oct 18 '17 at 23:43
  • It's a DreamCompute virtual cloud server. They allow you to install Ubuntu and everything from scratch (not like a shared/managed VPS type thing). Dreamhost says for cloud, it's my job to manage everything (which I am learning to do right now). – peppy Oct 19 '17 at 0:23
  • Do you have anyway right now to access your server at all? – Terrance Oct 19 '17 at 2:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.