Skip to content

BstLabs/py-authk

Repository files navigation

AuthK

Coverage

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.

Installation

Use the package manager pip to install AuthK from the PyPi site:

pip3 install authk

Usage

$ 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

License

MIT License, Copyright (c) 2021-2022 BST LABS. See LICENSE file.