sshh is an ssh helper tool for batch registration of ssh private keys in ssh-agent.
The main purpose of sshh is to avoid ssh: Too many authentication failures that occurs when the number of keys registered in ssh-agent exceeds a certain number. This error occurs when the upper limit of key attempts is exceeded when the server is setting the upper limit of private key attempts strictly.
This problem can be avoided by clearing all the keys registered in ssh-agent and registering as many as necessary, or entering the passphrase each time. However, in situations where there are multiple keys and servers, ssh connections can be very cumbersome. sshh uses Python’s subprocess package to start a new ssh-agent, and further calls ssh-add to collectively register as many private keys as necessary. This relieves you from the hassle.
Usages
Init
(.venv) $ sshh-config init Enter password for your registry: xxxxx The registry file ~/.sshh.registry is created.
Change password
(.venv) $ sshh-config chpw Enter CURRENT password for your registry: xxxxx Enter NEW password for your registry: yyyyy Enter NEW password again for verification: yyyyy Password has been changed.
Register key
(.venv) $ sshh-add -g prod ~/id_rsa_server1 Enter password for your registry: xxxxx Enter passphrase for the keyfile: yyyyy The keyfile is registered.
List keys
(.venv) $ sshh-add -l Enter password for your registry: xxxxx [prod] /home/user/.ssh/id_rsa_server1 /home/user/.ssh/id_rsa_server2 [stg] /home/user/.ssh/id_rsa_server7 /home/user/.ssh/id_rsa_server8
Invoke ssh-agent
(venv) $ sshh-agent -g prod Enter password for your registry: xxxxx Enter password for your registry: Registering keys for session "prod" ssh-agent PID=67779 session "prod" has been started. To close this session, exit shell. [prod] (venv) $ [prod] (venv) $ exit exit ssh-agent PID=67779 session "prod" has been closed. (venv) $
Release files for sshh 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sshh-0.10.0.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sshh-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.5 kB
Release files / sshh-0.10.0.tar.gz
| Download URL | sshh-0.10.0.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c55f82be08f0b6af5dddbe56a84c82ea8cdf56455466a701eca8968f3cd2f0af
|
|
BLAKE2b-256 checksum How to use checksums |
9e1ce248f46eeaaf72edc87e2d8700a96edec6f8398ec0c49072fc7618b05cbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.15 CPython/3.6.8 Darwin/18.6.0
|
Release files / sshh-0.10.0-py3-none-any.whl
| Download URL | sshh-0.10.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a928e24dc033eab3c00894d4be69ff35fa208d67dac68befddb5ac1e2df8b07
|
|
BLAKE2b-256 checksum How to use checksums |
95c89adf45bc26f57a90e618049ecea370111150262c72bd4c34ad872e3ddc87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.15 CPython/3.6.8 Darwin/18.6.0
|