I recently changed the default port for sftp by following a simple guide on YouTube called, “How to Find and Change SFTP Port Number”.
On my DigitalOcean droplet remotehost I changed the port line in /etc/ssh/sshd_config to something other than the default (22). Now I can't login using ssh or sftp. Here is the error message I am now getting:
So I immediately logged back in using the Console Access feature in my browser through my DigitalOcean dashboard and reverted the port line in /etc/ssh/sshd_config back to 22. I still can't login to my remote host via ssh from my local terminal. I also can't login to via sftp with my konqueror sftp client. Konqueror tells me this:
$ ssh user@remotehost
ssh: connect to host remotehost port 22: Connection refused
It's worth noting that I also tried sftp://user@remotehost:22, still no dice.
Details of the Request:
Date and Time: Tuesday, June 30, 2015 02:26 PM
Additional Information: Connection refused
I Googled around and came across this guide on DigitalOcean.
I don't have a firewall. And there is no output for
I am doing something trivially wrong here. Can someone please unleash a cluebat on me?
sudo netstat -plutn | grep 22