LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH Port Changing (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-port-changing-697618/)

tuftystick 01-15-2009 06:28 PM

SSH Port Changing
 
Greetings,

I am trying to change a port number on a clients VPS.

The problem is, I have edited the sshd_config & ssh_config restarted the service and the server and now I am unable to login with either port 22 or 2200.

I have tried to connect remotely from the node and from putty and get connection refused...

Any ideas?

Thanks.

GaijinPunch 01-15-2009 06:48 PM

Quote:

Originally Posted by tuftystick (Post 3410459)
Greetings,

I am trying to change a port number on a clients VPS.

The problem is, I have edited the sshd_config & ssh_config restarted the service and the server and now I am unable to login with either port 22 or 2200.

I have tried to connect remotely from the node and from putty and get connection refused...

Any ideas?

Thanks.

Are you denoting the right port? I forgot where it is in putty, but it should be pretty apparent.

Things to check:

On the server,
-ensure that ssh is actually running.
-ensure that it's listening on the port you think it is
Code:

netstat -a |grep [PORT NUMBER]
On the client
-ensure you can ping the machine, assuming ICMP packets aren't blocked
-ensure you've actually set the port right.

Other stuff:
Is there a firewall blocking the port?


All times are GMT -5. The time now is 04:32 AM.