Generate keys and configure keys for given users.
Go to file
2021-05-12 21:20:41 +08:00
genkeys.py change default key length to 8192 2021-05-12 21:20:41 +08:00
ReadMe.md initial 2021-05-12 21:19:00 +08:00
users.txt initial 2021-05-12 21:19:00 +08:00
utils.py initial 2021-05-12 21:19:00 +08:00
writekeys.py initial 2021-05-12 21:19:00 +08:00

PublicKey Configurator.

Generate keys and configure keys for given users.

How to use.

  1. write the username to users.txt, one name per line.
  2. run genkeys.py, it will generate ssh key pairs for all the users in the users.txt
  3. run writekeys.py, it will write the generated the keys to $HOME/.ssh/authorized_keys.
  4. send the generated private key to the user.

Notice.

if the user has already configured a proper sshkey, it will skip it.