edit
Update an existing SSH server configuration.
edit
Update an existing SSH server configuration.
Syntax
hostnextra ssh edit <name> [options]Arguments
| Argument | Description |
|---|---|
name | Existing server name |
Options
| Option | Description |
|---|---|
--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.15Update the username
hostnextra ssh edit web-01 \
--user rootUpdate the SSH port
hostnextra ssh edit web-01 \
--port 2222Rename a server
hostnextra ssh edit web-01 \
--name productionUpdate the identity file
hostnextra ssh edit production \
--identity-file ~/.ssh/id_rsaUpdate tags
hostnextra ssh edit production \
--tags production,databaseRelated Commands
hostnextra ssh addhostnextra ssh listhostnextra ssh connecthostnextra ssh remove