SSHKeyDistribut0r has been written to make SSH key distribution easier for sysop teams.
pip install SSHKeyDistribut0r
First, copy the YAML sample files to your users config directory and customize them.
The sample files should be in
The config files need to be copied to
$HOME/.config/... on most Linux systems, check
SSHKeyDistribut0r -h for
the location on your system)
The keys.yml file has to contain all users which are used in the
servers.yml file. Every entry in the YML structure requires the
fullname is a string value to mention the full name of a person.
keys is a list of SSH keys in the format
ssh-rsa <KEY> <comment>.
The servers.yml file contains all servers with the specified user permissions. It consists of a list of dictionaries with the following attributes:
ip: String value in the format
port: Integer value which specifies the SSH port
user: String value which specifies the system user to log in.
comment: String value to describe the system
authorized_users: List of strings which specify a user. Every user has to be declared in the keys.yml file as a key.
SSHKeyDistribut0r to distribute your SSH keys :)
Note, that a pre-installed public key on the server side with a corresponding private key (without a passphrase or pre-loaded into a local key agent) is required for SSHKeyDistribut0r to work.
-n: To verify your configuration whithout actually applying those changes.
-k: Custom path to keys file
-s: Custom path to server file
pip install build
python -m build
pip install ./dist/SSHKeyDistribut0r-<version>.tar.gz
pip install twine
twine upload ./dist/SSHKeyDistribut0r-<version>.tar.gz
git add .
git commit -m "Version x.x.x"
git checkout master
git merge develop
git tag x.x.x
git push --tags