⛓ Host chaining ⛓ Host chaining

⛓ Host chaining

Dmitry Machulo Dmitry Machulo

Host chaining lets you connect to ssh hosts that require you first to connect to another, intermediary, ssh server, such as bastion server or jump box. Host chaining is similar to the -J argument or ProxyJump option, which are available in OpenSSH.

ezgif-3-9e6aace02ee6.gif
Setting up host chaining in the desktop app

To connect through an intermediary server, in short, you’ll need to:

  1. Add this host and the intermediary host(s) to Termius.
  2. Specify the intermediary host(s) in the properties of the target host.
  3. Connect to the target host (tap or double-click it).

See the detailed steps below.

  1. Add the intermediary host(s) and the target host to Termius.
  2. Right-click the target host and click Edit.
  3. Next to the Host Chaining field, click Edit Chain.
  4. Click Add host.
  5. Select the host from where the target host is reachable.
  6. Click Done.
  7. To add a host from where the host you’ve just added is reachable:
    1. Click Add Host.
    2. Select the intermediary host.
    3. Click Done.
  8. Save the changes.
  9. Connect to the target host entry.
  1. Add the intermediary host(s) and the target host to Termius.
  2. Open the Hosts screen.
  3. Tap the target host and hold, then tap Edit.
  4. Tap the Host chaining field.
  5. Tap Add host.
  6. Select the host from where the target host is reachable.
  7. To add a host from where the host you’ve just added is reachable:
    1. Tap Add host.
    2. Select the intermediary host.
  8. Save the changes.
  9. Connect to the target host entry.
  1. Add the intermediary host(s) and the target host to Termius.
  2. Open the Hosts screen.
  3. Tap the icon of the target host, then - the 'pencil' icon.
  4. Tap the Host chaining field.
  5. Tap Add host.
  6. Select the host from where the target host is reachable.
  7. To add a host from where the host you’ve just added is reachable:
    1. Tap Add host.
    2. Select the intermediary host.
  8. Save the changes.
  9. Connect to the target host entry.

Under the hood

When you connect through an intermediary, you connect through a tunnel between your local machine, the intermediary host and the target host. All data sent from your local machine to the target host and back from the server is transmitted in an encrypted form.

ℹ️ Host chaining cannot be used with servers that prevent port forwarding.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.