gopass-ssh-add - Use "gopass" as storage for ssh keys
gopass-ssh-add
[--help|-h]
[--quiet|-q|--silent]
[--store]=[value]
[--version|-v]
[--yes|-y]
This command allows you to generate ssh keys, save it to gopass store and add it to ssh-agent.
Usage:
gopass-ssh-add [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
--help, -h: show help
--quiet, -q, --silent: do not write logs to stdout
--store="": first part of path to find the secret (default: ssh-keys)
--version, -v: print the version
--yes, -y: answer yes to all confirmations
manage ssh-agent
add ssh-key to ssh-agent
`gopass-ssh-add --store=ssh-keys agent add path/to/ssh/key` # Add ssh-key to agent forever
`gopass-ssh-add --store=ssh-keys agent add --time=300 path/to/ssh/key` # Add ssh-key to agent for 5 minutes
--lifetime, --time, -t="": set a maximum lifetime when adding identities to an agent. (default: 0)
delete ssh-key from ssh-agent
gopass-ssh-add --store=ssh-keys agent delete path/to/ssh/key
show keys list in ssh-agent
gopass-ssh-add --store=ssh-keys agent list
delete all keys from ssh agent
gopass-ssh-add --store=ssh-keys agent clear
manage ssh-key secrets in gopass
delete secret from gopass storage
gopass-ssh-add --store=ssh-keys secret delete path/to/ssh/key
generate password, run ssh-keygen save it to gopass storage
gopass-ssh-add --store=ssh-keys secret generate path/to/ssh/key
--bits, --bit, -b="": Ssh key bits (default: 4096)
--comment, -C="": Ssh key comment
--length, -l="": Password length (default: 32)
--symbols, -s: Add symbols to password
--type, -t="": Ssh key type (default: ed25519)
manage ssh-key password
show ssh-key password
`gopass-ssh-add --store=ssh-keys secret password show path/to/ssh/key/secret` # show ssh-key password
`gopass-ssh-add --store=ssh-keys secret password show -c path/to/ssh/key/secret` # copy ssh-key password to clipboard
--clipboard, --clip, --copy, -c: Copy content to clipboard
delete ssh-key password
gopass-ssh-add --store=ssh-keys secret password delete path/to/ssh/key/secret
generate ssh-key password
gopass-ssh-add --store=ssh-keys secret password generate -l=32 -s path/to/ssh/key/secret
--length, -l="": Password length (default: 32)
--symbols, -s: Add symbols to password
insert ssh-key password from stdin
echo "some-password" | gopass-ssh-add --store=ssh-keys secret password insert path/to/ssh/key/secret
manage ssh-key in secret
delete ssh-key (private and public) from secret
gopass-ssh-add --store=ssh-keys secret key delete path/to/ssh/key/secret
manage private ssh-key section
insert private ssh-key from stdin
cat ./private/ssh-key/path | gopass-ssh-add --store=ssh-keys secret key private insert path/to/ssh/key/secret
show private ssh-key
gopass-ssh-add --store=ssh-keys secret key private show path/to/ssh/key/secret
--clipboard, --clip, --copy, -c: Copy content to clipboard
delete private ssh-key
gopass-ssh-add --store=ssh-keys secret key private delete path/to/ssh/key/secret
manage public ssh-key section
insert public ssh-key from stdin
cat ./public/ssh-key/path | gopass-ssh-add --store=ssh-keys secret key public insert path/to/ssh/key/secret
show public ssh-key
gopass-ssh-add --store=ssh-keys secret key public show path/to/ssh/key/secret
--clipboard, --clip, --copy, -c: Copy content to clipboard
delete public ssh-key
gopass-ssh-add --store=ssh-keys secret key public delete path/to/ssh/key/secret
Shows a list of commands or help for one command