Skip to main content

lvl system ssh

Connect to a system via SSH, automatically adding SSH keys to the system if necessary

Synopsis

Connect to a system via SSH, automatically adding SSH keys to the system if necessary. The command will automatically add your favorite SSH key to the system if necessary. You'll need to use 'lvl sshkey favorite' to configure it the first time. The command figures out a valid IP address to connect to and passes it through to the ssh command. Arguments passed after the system ID/name are passed to ssh literally. Note that for any flags starting with "-", you'll want to put "--" before them so lvl does not try to interpret them as flags itself.

lvl system ssh <system> [flags] [--] [ssh args]

Examples

lvl system ssh my-awesome-server
lvl system ssh my-awesome-server ls "~"
lvl system ssh my-awesome-server -- ls -l "~"

Options

  -h, --help   help for ssh

Options inherited from parent commands

      --apikey string   API key
--config string config file (default is $HOME/.lvl.yaml)
-o, --output string Specifies output mode for commands. Accepted values are 'text', 'json', 'yaml' or 'id'. (default "text")
--trace Do detailed network request logging. This is intended for debugging and should not be parsed.

SEE ALSO