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. |
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.
|
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. |