LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH authorized_keys Global Include (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-authorized_keys-global-include-803517/)

benjam1nrk 04-22-2010 09:01 AM

SSH authorized_keys Global Include
 
Is it possible to 'include' a global SSH authorized_keys file?

For example, I have user accounts user1,user2,user3 and my user name is Benjamin. I want to be able to use my ssh key to authenticate as each of these users. I can manually copy my key to each .ssh/authorized_keys file individually, but is there a way to simply include /home/Benjamin/.ssh/global_authorized_keys in each of these user's authorized_keys file without manually adding and removing?

Thanks.

benjam1nrk 04-22-2010 10:19 AM

I believe the easiest method will be writing a simple shell script to combine the global file with the per-user file and run whenever global file is changed or users are added.

chrism01 04-22-2010 07:27 PM

If the target is only used by you, look at AuthorizedKeysFile setting in sshd_config http://www.openbsd.org/cgi-bin/man.c...nfig&sektion=5 & http://www.openbsd.org/cgi-bin/man.c...sshd&sektion=8


All times are GMT -5. The time now is 06:31 PM.