Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Linux VPS Support

Notices

Reply
 
Thread Tools
  #1  
Old 11-03-2009, 08:36 PM
winnerww winnerww is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 5
Default SSH On Non-Standard Port

After receiving my VPS, I set SSHd to operate on Port 2222, restarted the SSH server and had no problem accessing the VPS via SSH. At least that was the case until today's system reboot, after which I could not log into SSH on Port 2222 or 22 for that matter.

Using the Parallels Power Panel file manager to download, edit and upload the /etc/ssh/sshd_config file I reset the port back to 22, restarted the SSH server and was able to log in again.

Has anyone other than myself seen this occur and what if any solution is there to prevent it happening again the next time the VPS is rebooted?
Reply With Quote
  #2  
Old 11-03-2009, 08:58 PM
quietFinn's Avatar
quietFinn quietFinn is offline
Veteran Croc
 
Join Date: Feb 2005
Posts: 3,558
Default Re: SSH On Non-Standard Port

Did you open port 2222 for tcp connections IN in the firewall?
__________________
quietFinn - netFinn Finland
"Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss
Reply With Quote
  #3  
Old 11-03-2009, 10:38 PM
winnerww winnerww is offline
Hatchling Croc
 
Join Date: Apr 2006
Posts: 5
Default Re: SSH On Non-Standard Port

Quote:
Originally Posted by quietFinn View Post
Did you open port 2222 for tcp connections IN in the firewall?
Come to think of it, I didn't, as I had forgotten the built in VPS Firewall

Apparently when I reconfigured the default SSH port a firewall rule was created on the fly which permitted SSH access on Port 2222 for the three days since I made the initial change. The server reboot deleted that temporary rule and access was thereafter silently blocked on Port 2222.

It would seem that during the shutdown for reboot that "firewall stop" did not perform an iptables save operation as one might assume.

Sounds like I need to install the CFS/LFD
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Often cannot connect to ssh port digitaltoast Shared Hosting Support 1 05-22-2008 06:17 AM
Transferring non-standard domains asgard Shared Hosting Support 7 10-17-2007 07:01 PM
Email SMTP Port 25 block - what about a different port? cmeidell Shared Hosting Support 0 01-24-2004 04:28 PM

All times are GMT -5. The time now is 09:45 AM.