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 agentOptions
-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 ownOptions 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 lineDocs
The docs page for devvm ssh-agent explains it in full.
See also
- devvm: Open a shell in this folder’s VM, creating it first
- devvm ssh-agent add: Load a key into devvm’s own SSH agent
- devvm ssh-agent rm: Remove a key from devvm’s own SSH agent
Last updated on