Results 1 to 8 of 8
  1. #1

    Locked myself out of the server... help please

    Last night, I managed to lock myself out of a friend's colocated server that's running Centos / cPanel. I changed the SSHd port from 22 to something non-standard, and then restarted the service without opening up that port in the firewall. I've made this change on every server I've setup or managed for the last 6 or 7 years; I just forgot that step this time... oops.

    I can get into cPanel/WHM, but can't seem to figure out a way to fix this. I can't set up a cron job in WHM as root, can't ftp in as root... Short of hiring a pair of remote hands (I'm in Las Vegas, my friend is in San Diego and the server is in Los Angeles), I'm not seeing a way to fix this.

    Any ideas?

  2. #2
    Join Date
    Jul 2006
    Location
    Australia
    Posts
    3,059
    Not any help now but I always install "ConfigServer Explorer" on my servers.
    cPanel, CloudLinux, Softaculous ℵ Off Site Backups, Redundant DNS

  3. #3
    I came across that while searching for a solution to this. Looks like a very handy addon and you can be sure I'll install it after this gets resolved.

  4. #4
    you can use this don't know if this was the solution you used. SSH Port will be changed back to 22.
    http://yourip/scripts2/doautofixer?a...safesshrestart

  5. #5
    Quote Originally Posted by pilsentico View Post
    you can use this don't know if this was the solution you used. SSH Port will be changed back to 22.
    http://yourip/scripts2/doautofixer?a...safesshrestart
    YOU ARE MY HERO!

    Seriously - you saved me a trip to L.A. I appreciate your help and knowledge VERY much. Thank you.

    I'm going to go and install ConfigServer Explorer now...

    Thanks again!

  6. #6
    Join Date
    Jul 2006
    Location
    Australia
    Posts
    3,059
    Just book marked this thread just in case.
    cPanel, CloudLinux, Softaculous ℵ Off Site Backups, Redundant DNS

  7. #7
    Join Date
    Jun 2011
    Location
    KUWAIT
    Posts
    45
    Hey ,

    That was some great solution you have shared with everyone . Nice job and glad it helped you .

  8. #8
    Join Date
    Jul 2011
    Location
    ATL,DFW,PHX,LAX,CHI,NJ
    Posts
    696
    Exactly why the servers I purchase have IPMI where I have complete control over the hardware. I know when I offer dedi's to my clients it will be that same hardware, that way if they goof up they have power and local console over IP access and can reload and get root access locally.

    Supermicro systems usually have this feature. IPMI KVM w/Virtual Media is the best server management I've experienced.

Similar Threads

  1. Help me... I am locked out from my server
    By blacktulip in forum Dedicated Server
    Replies: 6
    Last Post: 05-05-2011, 06:45 PM
  2. Locked out of server
    By Cyrian in forum Hosting Security and Technology
    Replies: 5
    Last Post: 04-15-2008, 04:32 PM
  3. Server locked me out :(
    By deanmr in forum Hosting Security and Technology
    Replies: 9
    Last Post: 12-18-2005, 01:40 PM
  4. locked out of server, but why?
    By Hulk in forum Hosting Security and Technology
    Replies: 6
    Last Post: 07-04-2004, 08:59 PM
  5. Locked myself out of my W2K Server
    By EricP in forum Web Hosting
    Replies: 16
    Last Post: 02-03-2003, 07:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •