Results 1 to 2 of 2
I hope everyone is well today.
I would like to run ssh server on a port other than 22.
SSH works fine both inside and outside (using port forwarding). HOWEVER,
...
- 01-21-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 2
SSH only working on port 22
I hope everyone is well today.
I would like to run ssh server on a port other than 22.
SSH works fine both inside and outside (using port forwarding). HOWEVER,
if I go to ssh_confing and change the port to port xxxx following the guidelines here: https://help.ubuntu.com/7.10/server/...sh-server.html
(adding 'Port xxx") to the ssh_config file.
I get the following message when I type "ssh localhost":
ssh: connect to host localhost port xxxx: Connection refused
I also issued a "ufw allow xxxx", and it did update the table... but I still cannot connect on the specified port.
I am running this on Ubunto Server 8.10, and there is no firewall set up. I have tried various ports, and I did restart the server after each change to ssh_config. If I must, I will run on port 22, but I prefer a wee bit more security.
Please do not respond with router issue, this is not connecting through the router at all. I am just trying to connect from the local machine (localhost).
In Summary:
ssh localhost (works on port 22)
ssh localhost (does not work on any other port other than 22... connection refused).
Thank you
- 01-21-2009 #2Just Joined!
- Join Date
- Jan 2009
- Posts
- 2
I was editing the wrong file..
It is sshd_config not ssh_config


Reply With Quote