Skip to main content

Possible to have global SSH keys?

Comments

4 comments

  • cPanelMichael
    The issue is that when logged in as the root user, all files uploaded are then owned by the root user. WordPress sometimes has issues if the files aren"t owned by the user of the account where they reside. It"s a simple matter of just running chown on the files after upload but it"s an extra step.

    Hello, One option to consider is to enable jailed shell access to the individual accounts, and then have your admins "su" into the account username before performing any actions:
    su username
    Thank you.
    0
  • JayBuys
    Thanks... that's helpful but our issue is really less about server administration and more about file transfers. What we're really looking for is an easy solution that will let us login as the account user via a program like FileZilla so that we can easily upload files without having to then change the ownership afterwards. Everything I've read so far suggests that this isn't possible without the extra step of enabling the necessary SSH keys on every individual cPanel account. That's an extra step but not a huge one so it looks like that's the route we'll end up going.
    0
  • JayBuys
    For anyone else who stumbles on this thread... If you add/authorize the SSH keys you need on a site in cPanel, it basically just writes those to files on the server in the /home/USERNAME/.ssh folder. If you copy the contents of this folder into /root/cpanel3-skel/.ssh/ it should copy them over when a new account is created via WHM. This way you can access your site via the account name using your SSH keys. However, if you do this, the SSH keys for the newly created site will NOT be visible/manageable via cPanel on the new site.
    0
  • cPanelMichael
    Thank you for reporting back with a workaround. Note that additional documentation on the skeleton directory feature is available at: Skeleton Directory - Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.