LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2009, 06:28 PM   #1
tuftystick
Member
 
Registered: Jan 2009
Location: Scotland
Distribution: CentOS 5.3
Posts: 36

Rep: Reputation: 15
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.
 
Old 01-15-2009, 06:48 PM   #2
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
Quote:
Originally Posted by tuftystick View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh - cannot connect after changing port SimbaSpirit Linux - Software 1 03-01-2008 07:49 PM
Problem with changing the ssh port Raakh Linux - Newbie 13 12-24-2007 02:23 AM
Changing the port on SSH Coldmiser SUSE / openSUSE 5 03-29-2006 08:25 PM
changing ssh port dannyk1 Linux - Security 7 06-17-2005 08:05 AM
Changing SSH Port taran Linux - Networking 2 08-10-2003 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration