SSH Host Resolution
Learn how HostnExtra Tunnel resolves SSH hosts.
SSH Host Resolution
HostnExtra Tunnel resolves SSH hosts using the following priority:
- Explicit command-line arguments
- HostnExtra SSH plugin
- 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:3306If 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 22This allows the plugin to work seamlessly with existing SSH environments without requiring additional configuration.