Skip to content
Edit this page

SSH Outbound (type: ssh)

  • Feature: ssh (enabled in standard / default builds).
  • UDP: Not supported (false).
  • connect-via: TCP supported.

Fields

Key Type Required Default Description
name, server, port, connect-via Common Yes (except connect-via) — Standard outbound options.
username string Yes — SSH login username.
password string No None Password authentication secret.
private-key string No None Inline key (if containing "PRIVATE KEY") or key file path (supports ~ home expansion).
private-key-passphrase string No None Passphrase for encrypted private key.
host-key list[string] No None OpenSSH public key strings to pin the server host key. If empty/omitted, host keys are not verified.
host-key-algorithms list[string] No None Allowed algorithms: ssh-ed25519 (ed25519), rsa-sha2-256, rsa-sha2-512, ssh-rsa (rsa), ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521.
totp-opt map No None Keyboard-interactive TOTP configuration:
- otp-auth: "<BASE32_SECRET>" (RFC 6238 defaults), or
- common: { secret, screw, step, digits, algorithm } (algorithm: SHA1 | SHA256 | SHA512).

Example

proxies:
  - name: ssh-bastion
    type: ssh
    server: ssh.example.com
    port: 22
    username: ops
    private-key: ~/.ssh/id_ed25519
    host-key:
      - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExampleKeyData..."
    totp-opt:
      otp-auth: "JBSWY3DPEHPK3PXP"