The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Locked out of ssh

Discussion in 'General Discussion' started by serj21, Jan 22, 2006.

  1. serj21

    serj21 Member

    Joined:
    Oct 11, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I did something stupid today while securing my server... I went and changed my ssh port and forgot to open the correct port on my firewall and upon trying to connect again I relised I was locked out.

    Telnet is disabled so can't use that.
    Cant use ssh as i've locked myself out.

    Best bet is to somehow edit my ssd_config file back to first port and then restart sshd by WHM, but how would I do this without ssh?

    My hosting company will log into the box but are gonna charge me to change it for one hours work so I want to see if I can fix it myself before giving the cash over.

    Is there anyway to get in and change this file via phpshell or something?

    Can anyone help please?
    Serj
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
  3. dropby23

    dropby23 Well-Known Member

    Joined:
    Jan 16, 2005
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
  4. paint

    paint Well-Known Member

    Joined:
    Nov 10, 2002
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    You could install WebMin as well
     
  5. serj21

    serj21 Member

    Joined:
    Oct 11, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for everyones replies.

    Dropby23: The script worked perfect, gave me access to server so I could set by old config file to how it use to be :) Didn't know this script existed so maybe I should pay more attention to these scripts and learn what they can help me with.

    Anyway thanks for saving me a server bill heh
     
Loading...

Share This Page