| name | ssh-helper |
| description | Secure Shell (SSH) configuration and key management. |
| metadata | {"navig":{"emoji":"🔑","requires":{"bins":["ssh","ssh-keygen"],"config":["~/.ssh/config"]}}} |
SSH Helper Skill
Manage your SSH keys and configurations to ensure secure and seamless connectivity to all your hosts.
Core Operations
Key Management
navig run "ssh-keygen -t ed25519 -C 'agent@navig' -f ~/.ssh/id_navig_ed25519 -N ''"
navig file show ~/.ssh/id_navig_ed25519.pub
Config Management
Optimize your SSH connection sharing and timeouts.
Recommended Config (~/.ssh/config):
Host *
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
ServerAliveInterval 60
ServerAliveCountMax 3
Apply Config:
navig file add ./templates/ssh/config ~/.ssh/config --mode 600
Connection Testing
navig run "ssh -v user@host 'echo Connection Successful'"
Best Practices
- Use Ed25519: Preferred over RSA for security and performance.
- Multiplexing: Use
ControlMaster to speed up sequential commands by reusing the TCP connection.
- Permissions: Always ensure
~/.ssh is 700 and keys are 600.