Automatic loader of ssh keys
ssh keys manager for multiple password protected private keys written currently in Python. Stop adding them manually.
What it does
Defines key bundles and allows adding all of keys in the bundle to a running ssh-agent In a way it is like GNU_Keychain, but does not force you to type in all your passwords, thank you @jamiesonbecker!
Run in virtualenv:
pip install sshadder
NOTE: The crypto path is not yet vetted, so do not install this system-wide just yet. Honestly :)
So that sshadder can work we need:
- Running process of ssh-agent
- Environment variable SSH_AUTH_SOCK pointing to that running process
The text will guide you to give a master password (not saved anywhere), and then for each key you wish to add, enter:
- file path
When you’re done, choose ‘s’ option to save and quit.
Please refer to --help, which shows default locations it’s looking for the JSON files.
What is actually happening
Upon invocation in normal mode, sshadder is:
1. checking ssh-agent environment variable is pointing to something useful 1. iterating over configuration file .sshagent.json entries and is adding the keys you have added.
The key passwords are encrypted, so master password is used to decrypt them to add them to the running agent. Each password is encrypted and then encoded using Base64 and added to the key item. The text file is kept as it is now - text file.
Not sure how REALLY safe it is, but it is safer than plain text shell scripts.
pexepect.spawn() is used, which means: Being able to access your user’s /proc filesystem at the time of adding the keys can allow unauthorized access to your passwords. An attacker could possibly “sniff” file descriptors to see the passwords passed to ssh-agent upone each key. If this is VERY unsafe for you, please send a patch/pull request :)
IF a security expert is reading these lines, I would like to learn how to avoid this
Patches/pull/feature requests are welcome to improve the code/fix bugs. Note I’m quite a busy person, so if you can fix/add it - send me a patch/pull-request.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size sshadder-0.3.1-py2.py3-none-any.whl (9.5 kB)||File type Wheel||Python version any||Upload date||Hashes View|
|Filename, size sshadder-0.3.1.tar.gz (56.4 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for sshadder-0.3.1-py2.py3-none-any.whl