Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
authkeys-rebuild - build new authorized_keys list
SYNOPSIS
authkeys-rebuild --help
authkeys-rebuild --keydir=/path/to/pubkeys/
authkeys-rebuild --dest=/path/to/authorized_keys
DESCRIPTION
Build an authorized_keys file by recursively locating .pub
public key files under a specified directory.
For example:
## Add some users:
mkdir -p ~/.ssh/pubkeys/users
mkdir ~/.ssh/pubkeys/users/joe
cp joe.pub joe-home.pub ~/.ssh/pubkeys/users/joe/
mkdir ~/.ssh/pubkeys/users/bob
cp bob.pub ~/.ssh/pubkeys/users/bob/
## Generate a fresh authorized_keys using defaults:
authkeys-rebuild --yestoall --verbose
## Oops, we need to revoke joe:
rm -r ~/.ssh/pubkeys/users/joe
authkeys-rebuild --yestoall --verbose
authkeys-rebuild is a cheap hack, the result of some discussion on #linode regarding the lack of an AuthorizedKeysDir sshd_config directive.
See authkeymgr from this distribution for a complete interactive approach to managing authorized key sets.
AUTHOR
Jon Portnoy <avenj@cobaltirc.org>