Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Remove Security Restricted Access for SSH/WHM?

Discussion in 'Security' started by Bashed, May 30, 2017.

  1. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    100
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Client on his KVM server is locked out and I cannot assist due to the password auth disabled on SSH set and WHM apparently has some restrictions set. I'm logged into the VM console and not sure where to remove both restrictions to get back in.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,745
    Likes Received:
    310
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The docs may be useful here:
    How to Secure SSH - cPanel Knowledge Base - cPanel Documentation

    Code:
    Warning:
    
    If you accidentally misconfigure your SSH configuration file, navigate to the following link in your web browser (where example.com represents the server's hostname or main IP address):
    
    https://example.com:2087/scripts2/doautofixer?autofix=safesshrestart
    This script attempt to will temporarily configure an additional SSH configuration file for port 22, which will allow you to access, edit, and fix the original SSH configuration file. If port 22 is already in use, then the script will configure an additional SSH configuration file for port 23.
    
    
     
    linux4me2 likes this.
  3. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    404
    Likes Received:
    3
    Trophy Points:
    143
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you are in VMconsole, you can check the configuration file of SSH (/etc/ssh/sshd_config ) and see the below settings

    PermitRootLogin Yes (mostly you have set this to no)
    PasswordAuthentication yes (mostly you have set this to no)

    This will make you login to server using server root pass.

    By locked out, if you mean client's ip got blocked, then you could check the same in WHM if CSF is installed in the server
     
  4. Bashed

    Bashed Well-Known Member

    Joined:
    Dec 18, 2013
    Messages:
    100
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    What about WHM restrictions? How do I remove those via SSH?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,419
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    linux4me2 likes this.
Loading...

Share This Page