sshenv
Manage your SSH identities really easy. Mosh compatible, tiny ssh wrapper
curl -fsSL sshenv.glevski.com/install.sh | sh- add
- Save an identity; prompts for anything missing
- create
- Generate a keypair with ssh-keygen and save a new identity
- create-env
- Write a .sshenvrc in the current directory
- list, ls
- List identities; local aliases when a .sshenvrc defines them
- remove, rm
- Delete an identity; key files stay on disk
- use
- Export the identity for this shell session
- connect, con
- ssh or mosh with the resolved identity
- cp, scp
- scp; paths starting with : are remote
- forward-ports, fp
- ssh -N -L tunnels, one per spec
- public-key, pk
- Print the identity's public key
- .
- Show the active identity and where it came from
- init
- Print a shell wrapper so use can export into your shell
resolves $SSHENV_ACTIVE_IDENTITY → ./.sshenvrc → ~/.sshenv/config.json
mosh compatible - --mosh per connection, or as an identity default
github.com/glevski/sshenv ↗mosh compatible - --mosh per connection, or as an identity default