HostnExtraHostnExtra Docs

add

Add a new SSH server configuration.

add

Add a new SSH server.

Syntax

hostnextra ssh add <name> <host> [options]

Arguments

ArgumentDescription
nameFriendly server name
hostHostname or IP address

Options

OptionDescription
--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.10

Specify a user

hostnextra ssh add web-01 192.168.1.10 \
  --user root

Specify a custom port

hostnextra ssh add web-01 192.168.1.10 \
  --port 2222

Use a private key

hostnextra ssh add web-01 192.168.1.10 \
  --identity-file ~/.ssh/id_ed25519

Add 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,web

Use a jump host

hostnextra ssh add web-01 192.168.1.10 \
  --proxy-jump bastion

Complete 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,ubuntu
  • hostnextra ssh list
  • hostnextra ssh edit
  • hostnextra ssh connect

On this page