Skip to main content

SSH Keys access for multiple developers

Comments

2 comments

  • rackaid
    I think this is what you are doing but not sure how you were automating it. But outside of using a full key management system, here is a simple system. Give each of your devs their own key. Make sure they use a good passphrase on the key. Then create an authorized_keys file containing each key from your devs. You add the auth key file to each cPanel account. Your devs would then login using the cPanel's account user name but are authenticated with their own key. I also recommend making sure the key is annotated (ssh-keygen does this automatically). This way you can tell who the key belongs to ssh-rsa AAAAB3NzaC1yc2EAAA...zAiVaOFy5Lwc8Lo+Jk= Fred @ Project FOOBAR
    In case of staff changes, you would need to refresh your authorized-keys files, but that can be automated via scripting if needed. Also, there are some server-side key options:
    0
  • cPanelLauren
    Another thing to note here is that cPanel allows SSH access for the cPanel user only, cPanel does not support multiple cPanel users so I'm not seeing how this would be a viable solution in a supported manner. cPanel does have Manage SSH Access where you can generate an SSH key, but if one developer needed access to multiple accounts they would need different SSH keys for each account - you would also not want to have one SSH key for all users.
    0

Please sign in to leave a comment.