Skip to content
devvm ssh-agent

devvm ssh-agent

Show or change SSH agent forwarding for this folder’s VM

Synopsis

Show whether this folder’s VM forwards an SSH agent, which is off, on for yours, or devvm for devvm’s own with only the keys you added to it, and then those keys. devvm ssh-agent on, devvm or off changes it from the VM’s next start, so in a terminal devvm offers to restart a running VM now. While forwarding is on and you’re connected, anything in the VM can use the agent’s keys.

devvm ssh-agent [on|devvm|off] [flags]

Examples

  devvm ssh-agent                        # show the VM's agent forwarding
  devvm ssh-agent add ~/.ssh/deploy_key  # load a key into devvm's own agent
  devvm ssh-agent devvm                  # forward devvm's own agent from the VM's next start
  devvm ssh-agent off                    # stop forwarding an agent

Options

  -h, --help     help for ssh-agent
      --here     use this folder's own VM, never that of a folder it's inside
      --json     print it as one JSON object, for scripts
      --parent   use the VM of the nearest folder this one is inside, even across a git repo of its own

Options inherited from parent commands

      --no-input   never ask, and fail where devvm would ask, naming the flag that answers it
  -v, --verbose    show the output of the commands devvm runs instead of a status line

Docs

The docs page for devvm ssh-agent explains it in full.

See also

Last updated on