~/.ssh/config
Host claude-dev HostName dev.example.com User developer Port 22 IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes ServerAliveInterval 30 ServerAliveCountMax 3
Build one reviewable OpenSSH alias and the matching Claude Desktop connection for a Linux or macOS machine you control. Test the alias first, then open that remote environment from Anthropic’s Code tab.
This creates a local alias. It does not test the host, open a network connection, or modify files.
Host claude-dev HostName dev.example.com User developer Port 22 IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes ServerAliveInterval 30 ServerAliveCountMax 3
ssh claude-dev
{
"sshConfigs": [
{
"id": "claude-dev",
"name": "Development server",
"sshHost": "claude-dev",
"startDirectory": "~/projects"
}
]
}Merge the JSON—do not overwrite existing Claude settings. Prefer the Desktop dialog when you do not need a checked-in or centrally managed connection list.
Append the host block to ~/.ssh/config, confirm the identity-file
permissions, then run ssh claude-dev.
In Claude Desktop’s Code tab, open the environment dropdown and choose + Add SSH connection. Use claude-dev as SSH Host.
Select the connection, open the project directory, and start with Manual or Plan permissions while you verify the remote environment.
Claude Desktop still needs somewhere to run. Pick the smallest option that matches the work instead of buying infrastructure by default.
Keep the machine patched and reachable, and let its existing SSH policy do the work.
Generate the connection →Anthropic says Cloud sessions continue after the app closes and carry no separate compute charge beyond plan usage.
Check current availability →Base provides one persistent Debian workspace and key-only inbound SSH from €6/month. Keep files, processes, and tmux alive independently of your laptop.
See the managed SSH workspace →Add your public key, use the paid pane slug as the SSH username, and connect through terminalbox.ai on port 2222. The private key remains on your device. The gateway is intentionally limited to shell and remote-command sessions.
Anthropic currently documents SSH sessions for remote Linux and macOS machines. The machine must be reachable over SSH with credentials available on the computer running Claude Desktop.
Anthropic says Desktop installs Claude Code automatically on the first connection. The remote account still needs permission to install and run the required software.
No. The generator runs in your browser. It never asks for a private key value—only the local path that OpenSSH should use.
Do not overwrite an existing settings file. Merge the generated sshConfigs entry into ~/.claude/settings.json, or use the Desktop dialog and the generated SSH alias instead.
Yes, through a paid pane. Terminalbox provides a key-only SSH endpoint at terminalbox.ai on port 2222, with the pane slug as the username. The gateway supports shell and remote-command sessions, but not port, agent, X11, or filesystem forwarding.