SSH Key for multiple users
Hello, I have a specific case on a server where I currently host 80 clients that use the "same site", that is, they use the same repository on github.
So to authenticate I create a ssh key on everyone and add it to the github account. So my git account has more than 80 keys just to authenticate a single repository.
Is it possible to generate a single key and share it with all users?
It would help a lot in the automation of account creation for this case of users.
-
Hey there! I don't see why you couldn't do this, although there wouldn't be a tool in cPanel or WHM to provide this functionality. You'd need to manually place the key in each user's /home/username/.ssh directory, and then make sure the key file also has the correct ownership of the cPanel user, but that's all that would be required to get that working. 0 -
so it's not a good thing to do ? cause if i do like you say copying into .ssh directory for e new user i can do with a single script for each new one 0 -
I think it's a fine thing to do, we just don't provide a tool that would distribute the key across the accounts as it's not a very common scenario. 0
Please sign in to leave a comment.
Comments
3 comments