SSH servers
Add an SSH server once, and Claude in the accounts you allow can work on it directly, with passwords and keys kept out of the conversation.
Feature overviewOnce you add your servers on the SSH servers page, Claude in the accounts you allow can run commands on a server, upload and download files, sync folders, and forward ports. You can also open a terminal on the server yourself, right in the app.
Passwords and private keys are stored only in this computer’s keychain (Windows: Credential Manager). They never appear in conversations or logs, and they’re never handed to the account’s sandbox.
This is different from Settings › SSH Access, which lets this computer connect to an account’s sandbox with ssh claude1; see Terminal commands.
Add a server
- Open SSH servers under Manage in the sidebar, then click Add server.
- In Paste SSH command, paste the command you usually use, like
ssh -p 2222 user@host, and the fields fill in on their own.user@host:portworks too. - Check Name, Address, Port, and User name. Names use 1 to 64 letters, digits, periods, underscores, or hyphens, and Claude refers to the server by its name.
- In Note, write a sentence about what the server is for, so Claude knows.
- Choose how to Sign in with (see below).
- Under Accounts that can use it, select the accounts you want to allow.
- Click Test connection, then Add.
Sign-in methods
| Method | How it works |
|---|---|
| Key made by the app (recommended) | Claude Manager makes a new key. Fill in Server password (used once, never saved), and saving signs in once with it to add the public key to the server. If you leave it blank, the window shows the public key after the server is added: add it to ~/.ssh/authorized_keys on the server yourself, or click Add to server there |
| Private key | Choose a private key file or paste the key directly. ed25519, ECDSA, and RSA are supported. If it has a passphrase, enter that too |
| Password | Sign in with a password |
Confirm the server’s identity
The first time you connect to a server, you’ll see First connection to this server along with its host key fingerprint. Compare it with the fingerprint the server’s administrator gave you, and once it matches, click Trust and continue. No password or key is sent until you trust it.
If you later see This server’s host key changed, the key differs from the one you trusted before: someone may be intercepting the connection, or the server may have been reinstalled. It won’t sign in this time. Only if you’re sure the server was reinstalled, or the administrator changed the key, click Trust anyway…, then Trust new key.
Connection route
Connections always start from this computer. Under Connect, you can choose:
- Directly: the default, using this computer’s own network.
- Through a jump server: connect to another server you’ve added first, then on from there.
- Through a proxy: connect through one of the proxy servers on the Proxies page.
If other servers jump through a server, change those servers’ routes before you can delete it.
Allow accounts
By default, no account can use a new server. Turn accounts on one by one under Accounts that can use it, or choose All.
Keep this in mind: In the accounts you turn on, Claude can run any command and transfer files on this server without asking you again. Allow only accounts you trust with that.
Once an account is allowed, Claude can:
- Run commands, including long jobs in the background.
- Upload and download files and folders.
- Sync folders.
- Forward ports so programs in the sandbox can reach services on the server.
Background jobs, transfers, terminals, and forwards in progress appear in the server’s row. Click Close to end a forward right there.
Import from SSH config
If you’ve already set up hosts in ~/.ssh/config, click Import from SSH config:
- Select the hosts to import. Each one shows whether its key can be used, whether it needs a passphrase or password, and whether
known_hostshas its host key. - Enter the passphrases or passwords the selected hosts need.
- Choose accounts under Allow.
- Click Import N (with the number of hosts).
Open a terminal in the app
Click Terminal in a server’s row to open an SSH terminal tab. Click SSH servers to go back to the list. You can also use Copy ssh command to connect from your own terminal.
Edit and delete
- Edit…: change the settings. Saving closes this server’s open connections. When editing, leave the password or private key field blank to keep the saved one.
- Delete…: the password or private key in the keychain (Windows: Credential Manager) is deleted too, and accounts can no longer use the server.
Windows servers
When you connect to a Windows SSH server, Claude Manager recognizes it on its own, with nothing extra to set up. Claude’s commands always run in Windows PowerShell.
Common problems
| Message on screen | What to do |
|---|---|
| This server’s identity isn’t confirmed yet | Test the connection, check the host key, and choose to trust it |
| The server didn’t let … sign in | Check the user name and the password or key. When you use a key, the public key must be in ~/.ssh/authorized_keys on the server |
| Reachable, and its host key is verified. It can sign in once the public key is on the server. | Add the public key to the server, or click Add to server to sign in once with a password |
| This private key needs its passphrase | Enter the passphrase that protects this key |
| Couldn’t add the key to the server | Copy the public key and add it to ~/.ssh/authorized_keys on the server yourself |