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.

Change SSH port

Discussion in 'General Discussion' started by ptez, Jun 9, 2006.

  1. ptez

    ptez Active Member

    Joined:
    Jun 5, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    I refer to:
    http://forums.cpanel.net/showthread.php?t=30159

    and change the default SSH port from default 22 to some other,
    and restart SSH, got kick-out, and then...
    I can never get connected again!!

    The result to telnet original 22 port or the new one, all get the same result:
    telnet: Unable to connect to remote host: Connection refused


    What should I do now to fix it? :(
     
  2. easyhoster1

    easyhoster1 Well-Known Member

    Joined:
    Sep 25, 2003
    Messages:
    659
    Likes Received:
    0
    Trophy Points:
    16
    Did you change the port # in your ssh client that you connect with?

    If so, and you still cannot connect. You most likley will need to contact your host or NOC to have them reset it back to 22
     
  3. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    If you are running a firewall you need to open the new port on the firewall in order to connect. You might need to contact your datacenter and have them use terminal to either change port back or open the new port in your firewall.
     
  4. ptez

    ptez Active Member

    Joined:
    Jun 5, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    But since the root password is owned by me, and I cannot ssh in the server (due to the connection rejection).

    Then how to the data center reset the port ? They cannot ssh into the server as well, can they?
     
  5. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
  6. ptez

    ptez Active Member

    Joined:
    Jun 5, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, dalem. It's ok now. :)
     
Loading...

Share This Page