HostnExtraHostnExtra Docs

edit

Update an existing SSH server configuration.

edit

Update an existing SSH server configuration.

Syntax

hostnextra ssh edit <name> [options]

Arguments

ArgumentDescription
nameExisting server name

Options

OptionDescription
--name <name>Rename the server
--host <host>Update the hostname or IP address
--user <username>Update the SSH username
--port <port>Update the SSH port
--identity-file <path>Update the private SSH key
--proxy-jump <host>Update the jump host
--description <text>Update the description
--tags <tag1,tag2>Update the server tags

Examples

Update the hostname

hostnextra ssh edit web-01 \
  --host 10.0.0.15

Update the username

hostnextra ssh edit web-01 \
  --user root

Update the SSH port

hostnextra ssh edit web-01 \
  --port 2222

Rename a server

hostnextra ssh edit web-01 \
  --name production

Update the identity file

hostnextra ssh edit production \
  --identity-file ~/.ssh/id_rsa

Update tags

hostnextra ssh edit production \
  --tags production,database
  • hostnextra ssh add
  • hostnextra ssh list
  • hostnextra ssh connect
  • hostnextra ssh remove

On this page