SSH

Connect to remote hosts over the Pangolin tunnel using the Pangolin CLI

Private SSH resources let users connect to remote hosts from their terminal over the Pangolin tunnel. Unlike public SSH resources, private SSH is not browser-rendered.

Benefits

  • SSH servers are never exposed to the public internet. Only connected clients with access can reach them.
  • With automated provisioning, users sign in with their Pangolin identity and get short-lived certificates, so there are no long-lived keys to distribute or rotate.
  • Accounts are created on the host just in time, with sudo and group permissions set by role.
  • Users keep a native terminal workflow, including their own shell, tools, and SSH options.
  • Removing a user's access in Pangolin cuts off their path to the host, whatever credentials they still hold.

Use Cases

  • Give engineers SSH access to production or staging servers based on their role.
  • Reach many servers behind one bastion, with an auth daemon provisioning users on each host.
  • Replace a shared jump host and hand-managed authorized_keys files.
  • Let on-call staff get into servers from anywhere without a separate VPN.

How It Works

  1. The user connects with the Pangolin client (GUI or CLI).
  2. They run pangolin ssh <alias> where the alias matches the private resource.
  3. Pangolin checks the user's identity from the active client connection and enforces private resource access rules (users, roles, machines).
  4. Depending on the SSH configuration, Pangolin generates a short-lived certificate and provisions the user on the host, or the user authenticates with existing host credentials.
  5. An SSH session opens through the tunnel.

The Pangolin client provides the tunnel; the CLI handles certificate generation, user provisioning, and the SSH session itself. No manual SSH key distribution is required when using automated provisioning.

pangolin ssh <resource-alias>

The tunnel can be provided by the CLI or by another Pangolin client (for example the macOS app). You can run the GUI for the tunnel and use the CLI only for SSH. With companion mode on Windows, macOS, or Linux, the CLI uses the desktop app's login and connection, so pangolin ssh runs as the account you already signed in with.

Destination and Access

Create a private resource with a destination (IP or FQDN) for the host you want to SSH into. Assign an alias so users have a friendly name to pass to pangolin ssh.

Grant access to users or roles.

SSH resources don't use port restrictions, and the option isn't shown for them. Pangolin only allows the SSH port: in Standard SSH Server mode, that is the port you enter for the SSH server in the destination (default 22). In Pangolin SSH mode, there is no network port to configure, because the session runs through the site connector on the host itself.

Site and Host Configuration

SSH private resources do not use discrete targets. Instead, you:

  1. Select which sites can route to the resource.
  2. Enter the backend host and port—unless you selected Pangolin SSH mode, which executes sessions on the site connector host and does not require a host or port.

Pangolin SSH mode requires root. The Pangolin Site must run as root on the site connector host. Use sudo pangolin up site ... or run the site service as root. See Install Sites.

Pangolin routes through the site that is online and healthiest. See Multi-site Routing.

SSH Configuration

The SSH settings on a private resource use the same options as public SSH resources. Mode, authentication method, and auth daemon location are configured identically in the dashboard.

See SSH Access for a full explanation of each option, setup instructions, and an example for every configuration combination.

How Private SSH Differs from Public SSH

Private SSHPublic SSH
AccessPangolin CLI: pangolin ssh <alias>Web browser at a public FQDN
Client requiredYes — user must be connected with the Pangolin clientNo
Auth layerIdentity from the active client connection; private resource access rulesPublic resource authentication — login page, SSO, access rules
Manual auth stepCredentials handled by the SSH client or certificate flowUsername/password or private key entered in a browser form after the public auth layer
HostnameAlias on the private resourcePublic FQDN on your Pangolin domain
Port restrictionsNot applicable. Only the SSH port in the destination is allowedNot applicable

Troubleshooting

See Troubleshooting on the SSH Access page for common setup mistakes and what each pangolin ssh error means.

Was this page helpful?