OpenHands SSH skill: official integration and self-hosted backend tunnels

Published
Length
4 min read

Luis Felipe Dias

All posts

The OpenHands SSH skill is an official global skill. It guides the agent through logins, remote commands, and file transfers. Self-hosted backends often use SSH tunnels to keep management ports closed. A skill tells the agent what to do. It does not decide what the host allows once the connection is live. OpenHands is an open-source agent platform. The agent runs commands and edits files inside a sandbox or on a backend host. When you self-host the Agent Canvas on a virtual machine, the documen

Self-Service Access Portals + SSH Access Management: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

The OpenHands SSH skill is an official global skill. It guides the agent through logins, remote commands, and file transfers. Self-hosted backends often use SSH tunnels to keep management ports closed. A skill tells the agent what to do. It does not decide what the host allows once the connection is live.

OpenHands is an open-source agent platform. The agent runs commands and edits files inside a sandbox or on a backend host. When you self-host the Agent Canvas on a virtual machine, the documentation recommends allowing SSH only from your IP or VPN. Keep the management port closed unless you use an SSH tunnel. This setup is common, but it leaves a gap. The agent has a shell.

How the OpenHands SSH skill works

The skill lives in the official global skill registry. It triggers on keywords like "ssh," "remote server," and "ssh keys." It covers password logins, key-based logins, remote commands, and transfers. For password logins, the skill instructs the agent to ask the user for the password or a private key. It does not grant permissions or install dependencies by itself. It just injects guidance when the keyword appears in a user message.

This is useful for getting the agent started. It is not a security boundary. The agent still runs commands on the remote host. The host's own controls decide what happens. If the agent runs a command that deletes a file or modifies a system setting, the skill does not stop it. The host does.

OpenSSH certificates and command restrictions

OpenSSH certificates are signed by a CA key that the server trusts. This replaces listing each user key in authorized_keys. A certificate can carry its own forced command, source-address limit, and expiry. These limits travel with the credential. You can restrict what a certificate can do. Set a forced command to override any command the user supplies. Use source-address limits to allow the certificate only from specific IPs.

These are strong controls. They decide who can connect and what they can run in principle. They do not check every command as it runs. If a certificate is allowed to run a shell, the shell can do anything the user can do. If a certificate is forced to run a specific command, that command is fixed. You still need to trust that command not to do something unexpected.

Where the check has to run

Permissions are set before the agent runs. They cannot see what a specific statement is for. A certificate with a forced command is better than a bare shell. It is still a static rule. If the agent needs to run different commands for different tasks, you have two options. Give it a broad shell. Or create a new certificate for each command. The second option is not practical.

Self-Service Access Portals + SSH Access Management: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

hoop.dev closes this gap by running as an SSH server with guardrails on the host. It reads every one-shot command the agent sends. It checks it against your rules before it runs. It also checks file operations by path. The agent connects to hoop.dev instead of the host's native SSH server. hoop.dev runs the command on the host only if the rules allow it. If a command is refused, the agent gets a readable error explaining why. It can adjust or ask for help.

Self-hosted backends and tunnels

When you self-host OpenHands Agent Canvas, the documentation says to treat the VM as trusted infrastructure. Keep the management port closed unless you use an SSH tunnel. hoop.dev fits into this model by running on the host itself. The agent connects to hoop.dev over SSH. hoop.dev enforces the rules. You can keep your existing bastion or jump host in front if you have one. hoop.dev still works behind it. hoop.dev is the SSH server the agent talks to. It sees every one-shot command and file operation.

An interactive shell carries no guardrails. A keystroke stream has no statement boundary. hoop.dev cannot check individual keystrokes. If you need every action checked, turn off interactive shells. Allow only one-shot commands and file operations. This is a deliberate choice.

What this means for your setup

If you are using the OpenHands SSH skill with a self-hosted backend, you have a few options. You can rely on OpenSSH certificates with forced commands. This is good for fixed tasks but not for dynamic agent work. You can use a bastion host. This adds a layer of control but does not check every command. Or you can run hoop.dev on the host. It checks every one-shot command and file operation as it happens. It gives the agent readable errors. It writes an audit trail of who connected, what they asked to run, and what was refused.

hoop.dev is open source and MIT licensed. It runs as a single binary with one config file. It speaks the SSH protocol natively. The agent changes one thing: the host and port in its connection string. You can read the SSH protocol docs for setup details. Check the guardrails documentation to understand how rules are evaluated. Explore the hoop.dev GitHub repository to see how it works.

Frequently asked questions

Does the OpenHands SSH skill store SSH credentials?
No. The skill tells the agent to ask the user for a password or private key. It does not store or manage credentials. You should use key-based authentication and OpenSSH certificates for better control.

Can hoop.dev check interactive shell sessions?
No. An interactive shell has no statement boundary. hoop.dev cannot check individual keystrokes. It checks one-shot commands and file operations. If you need every action checked, disable interactive shells. Allow only commands and file operations.

Does hoop.dev replace my bastion host?
No. You can keep your bastion or jump host in front of hoop.dev. hoop.dev runs on the host and enforces the same rules either way. It is not a bastion replacement. It is a control layer on the connection.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.