Skip to content

Edit

sh
ssh-vault edit -h

aliases e

INFO

Usage: ssh-vault edit [OPTIONS] <vault>

Arguments:
  <vault>  Path of the vault to edit

Options:
  -k, --key <key>                Path to the private ssh key to use for decyrpting
  -p, --passphrase <passphrase>  Passphrase of the private ssh key [env: SSH_VAULT_PASSPHRASE=]
  -h, --help                     Print help

Editor (vi)

When editing a vault the environment variable EDITOR is use used, it defaults to vi if not set.

For example to use visual studio code you could use:

sh
export EDITOR="code --wait"

-k /path/to/key

To edit a vault using a specific SSH private key:

sh
ssh-vault edit -k ~/.ssh/id_ed25519

Released under the BSD License.