AuthK is a lightweight Python library to handle ssh keys within authorized_keys file directly from CLI.
It's built on top of DynaCLI and sshpubkeys. That makes it user friendly and secure.
AuthK was developed by BST LABS as an open source generic infrastructure foundation for the cloud version of Python run-time within the scope of the Cloud AI Operating System (CAIOS) project.
For details about the AuthK rationale and source code, refer to AuthK Github repository.
Use the package manager pip to install AuthK from the PyPi site:
pip3 install authk
$ authk -h
usage: authk [-h] [-v] {add, remove} ...
SSHD authorized_keys file handling utility
positional arguments:
{add, remove}
add Add key to authorized_keys list
remove Remove key from the authorized_keys list
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
$ authk add <key_text>
<user@myhost.com> sucessfully added
$ authk remove <key_txt>
<user@myhost.com> sucessfully removed
MIT License, Copyright (c) 2021-2022 BST LABS. See LICENSE file.