add
Add a new SSH server configuration.
add
Add a new SSH server.
Syntax
hostnextra ssh add <name> <host> [options]Arguments
| Argument | Description |
|---|---|
name | Friendly server name |
host | Hostname or IP address |
Options
| Option | Description |
|---|---|
--user <username> | SSH username |
--port <port> | SSH port |
--identity-file <path> | Private SSH key |
--proxy-jump <host> | Jump host |
--description <text> | Server description |
--tags <tag1,tag2> | Comma-separated tags |
Examples
Minimum configuration
hostnextra ssh add web-01 192.168.1.10Specify a user
hostnextra ssh add web-01 192.168.1.10 \
--user rootSpecify a custom port
hostnextra ssh add web-01 192.168.1.10 \
--port 2222Use a private key
hostnextra ssh add web-01 192.168.1.10 \
--identity-file ~/.ssh/id_ed25519Add a description
hostnextra ssh add web-01 192.168.1.10 \
--description "Production web server"Add tags
hostnextra ssh add web-01 192.168.1.10 \
--tags production,webUse a jump host
hostnextra ssh add web-01 192.168.1.10 \
--proxy-jump bastionComplete example
hostnextra ssh add web-01 192.168.1.10 \
--user ubuntu \
--port 22 \
--identity-file ~/.ssh/id_ed25519 \
--proxy-jump bastion \
--description "Production server" \
--tags production,ubuntuRelated Commands
hostnextra ssh listhostnextra ssh edithostnextra ssh connect