HostnExtraHostnExtra Docs

SSH Host Resolution

Learn how HostnExtra Tunnel resolves SSH hosts.

SSH Host Resolution

HostnExtra Tunnel resolves SSH hosts using the following priority:

  1. Explicit command-line arguments
  2. HostnExtra SSH plugin
  3. OpenSSH configuration (~/.ssh/config)

HostnExtra SSH Plugin

If the HostnExtra SSH plugin is installed, server aliases are resolved automatically.

For example:

hostnextra tunnel profile add mysql-prod \
    --from web-prod:3306 \
    --to localhost:3306

If web-prod exists in the HostnExtra SSH configuration, it is used automatically.

OpenSSH Configuration

When the HostnExtra SSH plugin is unavailable, HostnExtra Tunnel automatically falls back to your existing OpenSSH configuration.

Example:

Host web-prod
    HostName 192.168.10.20
    User ubuntu
    Port 22

This allows the plugin to work seamlessly with existing SSH environments without requiring additional configuration.

On this page