Goal
Add a command to generate SSH keys interactively.
Command
sshctl key generate <key-name>
Features
- Interactive prompts for:
- Key type selection (Ed25519, RSA-4096, RSA-2048, ECDSA)
- Passphrase (optional)
- Save path (default: ~/.ssh/)
- Use ssh-keygen under the hood
- Clear success message with key location
- Proper error handling (ssh-keygen not found, key exists, permission denied)
Example Usage
$ sshctl key generate github-personal
# Interactive prompts...
✓ SSH key pair generated successfully!
Private key: ~/.ssh/github-personal
Public key: ~/.ssh/github-personal.pub
Goal
Add a command to generate SSH keys interactively.
Command
Features
Example Usage