This library manages SSH keys that git uses for authentication with repositories
pip install ssh-py-managerssh-py-managerWhen you run ssh-py-manager, you'll be presented with a menu-driven interface offering four main options:
- Lists all SSH keys found in your
~/.sshfolder (detects.pubfiles) - Select a key to activate it in your SSH agent
- Clears any existing keys from ssh-agent and adds your selected key
- Perfect for switching between different SSH keys for different repositories
- Prompts for key details:
- Key name: Alphanumeric name for your key (e.g.,
github_work_key) - Email: Associated email address for the key
- Algorithm: Choose from rsa, dsa, ecdsa, or ed25519 (ed25519 recommended)
- Passphrase: Enter twice for confirmation
- Key name: Alphanumeric name for your key (e.g.,
- Generates the SSH key pair using
ssh-keygen - Automatically adds the new key to ssh-agent
- Displays the public key content so you can copy it to your Git provider
- Shows list of existing SSH keys
- Requires confirmation before deletion
- Removes the key from ssh-agent and deletes both private and public key files
- Warning: This permanently deletes the key files
- Safely exits the program
The interface uses interactive prompts with validation to ensure all inputs are correct before proceeding with any operations.
prompt-toolkit==3.0.36
questionary==2.0.1
wcwidth==0.2.13