gph03n1x / hctia

tool for mass addition/deletion of ssh-keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HCTIA

hctia is a small application for mass addition or deletion of a ssh key. Adding or deleting manually an ssh key on multiple internal virtual machines, can be quite the pain. This script makes easier to add/remove entries such as these:

ssh-rsa rsa/yaba/daba/dou= email@example.com

at the .ssh/authorized_keys file of each VM. The application is listing the available hosts from the users personal ssh config located at ~/.ssh/config.

Using the application

First of all you need to create python 3.9.6 virtual environment. I am using pyenv and venv for this job.

pyenv install 3.9.6  # if you don't have said version
pyenv local 3.9.6
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt

You can start the application using the provided bash script:

./run.sh

The script will open the web-ui in your browser

About

tool for mass addition/deletion of ssh-keys


Languages

Language:Python 98.7%Language:Shell 0.8%Language:CSS 0.5%