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.

Changed SSH Port Incorrectly

Discussion in 'Security' started by Junioz, May 3, 2015.

  1. Junioz

    Junioz Member

    Joined:
    May 3, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Jeff, you can be the guy who will help me!
    check this out PLEASE!!! ( My problem with the sshd_config ) is really serious!...

    # PROBLEM...

    i have change the sshd_config of my root SSH to modify the PORT 22, to another,
    give me more protection with different port ( i stupid idea of mine ).

    I ( stupid ) put the Port : 231991
    Now i cant anymore log in with my ROOT access to SSH or FTP to
    change the sshd_config and put back the Port : 22 or the 2200 UP ( but not with 6 numbers ).

    I try to make all things,
    access with ssh put the port 231991 but says "bad port" or "no required",
    the FTP dont allow me access with port ( 21, 22 and anothers ports the my firewall are allowing ), i try put the Port : 231991 into the firewall csf but get some error, so i remove.

    Please guys! Help me, how i cant fix it, to get the sshd_config back with the native configure Port : 22 or some way that i cant edit the file ou send the file into my ROOT access FTP.

    You can help-me?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You may want to try running a temporary instance of SSH to see if it allows you to access your server to investigate:

    Code:
    https://IP:2087/cpsess12345678/scripts2/doautofixer?autofix=safesshrestart
    You would replace "IP" with the server's IP address and the session number with what's displayed in your address bar. Note that this is simply a temporary instance of SSH so you can login and determine what's wrong with the standard SSH service. Then, use the following guide to update your SSH configuration:

    SSH Hardening Guide

    Thank you.
     
    nisamudeen97 likes this.
  3. Junioz

    Junioz Member

    Joined:
    May 3, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Thanks!
    Fixed problem!
     
Loading...

Share This Page