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!

Remote SSH ROOT access for single hostname/IP

Discussion in 'General Discussion' started by lostinspace, Nov 26, 2005.

  1. lostinspace

    lostinspace Well-Known Member

    Jul 19, 2003
    Likes Received:
    Trophy Points:
    Colorado Springs, CO
    Hello folks,

    I was wondering if there's a way to allow remote SSH ROOT access for a single IP/hostname?

    We have disabled "PasswordAuthentication" and "PermitRootLogin" in our SSHD config files but would like to be able to use ROOT SFTP.

    I suppose enabling "PermitRootLogin" and adding [from=""] to the beginning of the ROOT key would be a work around but still doesn’t seem very secure.

    Anyone have any ideas?

    Thanks in advance.

    I discovered the "without-password" for the "PermitRootLogin" tag in the SSHD config file. That's a little better option than simply allowing ROOT logins.

    Still looking to lock down SSH ROOT login to specific hostname(s)...

    Seems all I needed to do was post this thread because I'm answering my own question as I plug through the configuration file.

    Along with EDIT1, I added the following to the ROOT ".ssh/authorized_keys" file:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 lostinspace, Nov 26, 2005
    Last edited: Nov 26, 2005

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice