Skip to main content

Automatic loader of ssh keys

Project description

https://github.com/mvk/sshadder/raw/master/logo.200x200.png

About

https://travis-ci.org/mvk/sshadder.svg?branch=master

ssh keys manager for multiple password protected keys. Stop adding them manually.

What it does

Defines key bundles and allows adding all of keys in the bundle to a running ssh-agent

What it does not

  • aims at command line only, no graphic desktop/dependency. no DBus (no need)

  • does not compete with full-on private keys managers like Seahorse

  • ssh-agent management. You run it, and have SSH_AUTH_SOCK properly pointing to the desired SSH Agent process

Installation

Run in virtualenv:

pip install sshadder

NOTE: The crypto path is not yet vetted, so do not install this system-wide just yet. Honestly :)

Usage

Prerequisites:

Running and visible ssh-agent

Normally:

Run:

sshadder

Please refer to --help, which shows default locations it’s looking for the JSON files.

Initialization:

Run:

sshadder -i

The text will guide you to give a master password (not saved anywhere), and then iterate over

  • key file path

  • key password

When you’re ready, choose ‘s’ option to save and quit.

What is actually happening

Given config file .sshagent.json and master password, the utility adds all the ssh key files using their passwords JSON file keeps the key passwords encrypted using simple-crypt package. 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.

Current known security problems

As long as pexpect.spawn() is used here, it means if your system is compromised and rogue user can access your /proc, they probably can see the passwords passed to ssh-agent in clear text. If this is VERY unsafe for you, please send a patch/pull request :)

Contributing

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sshadder-0.3.0.tar.gz (56.0 kB view details)

Uploaded Source

Built Distribution

sshadder-0.3.0-py2.py3-none-any.whl (8.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sshadder-0.3.0.tar.gz.

File metadata

  • Download URL: sshadder-0.3.0.tar.gz
  • Upload date:
  • Size: 56.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sshadder-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b7d21456618f714380fe49fba267daefe6dcb10466fcc45d56f0e1306eca23c8
MD5 3d754f7d15036720217402a0bfbd6c78
BLAKE2b-256 e52097c5cfc30c68f8c0ddce041f11fb3240ec3f23b8a1e2b020ce6fb9268fc0

See more details on using hashes here.

File details

Details for the file sshadder-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sshadder-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 143eaf2b7d9a8c28de4f94e41e2325b88dc70314d0efed4dc18ab2551f963b05
MD5 951430812d850fde58ccc67730ffb187
BLAKE2b-256 30819f1c56523c7590f1529adfcca7dfd101512a39b94868d512ec70dd5dd09b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page