Skip to main content
Deepest Computers accept standard SSH connections for interactive shells, remote commands, SFTP, and local TCP forwarding. SSH keys are authorized for one Computer. The platform never needs your SSH private key. Use SSH when you want your own terminal or standard development tools. For a single programmatic command, the Exec API may be simpler. SSH, Desktop, and Exec operate on the same Computer and disk.

Before connecting

You need a Computer you own, a current entitlement that permits running it, a Running state, a local OpenSSH client, and a key pair. SSH does not create or start a Computer for you. Run these commands on your local computer:
Choose a passphrase when prompted. If that file already exists, use your existing key or choose another filename; do not overwrite a key you still need. The file ending in .pub is public. The file without that suffix is private and stays on your local computer. View the public key:
It should be a single line starting with ssh-ed25519. Never paste a file beginning with a private-key header.

Authorize the public key

In the Console, select your Computer and open Connect → Add public key. Enter the complete public-key line in Public key, optionally fill in Label (optional), and choose Save key. The SSH public keys list shows each authorized key’s fingerprint and offers Remove to revoke it. For an Agent or integration, the equivalent operation is:
Install the SDK from npm as described in TypeScript SDK. This example runs in your trusted local process; do not copy the Account Agent Key into the Computer. Adding the same public key again returns its existing authorization. Changing the label is not a way to create another grant. A key authorized on Computer A does not automatically authorize Computer B.

Obtain the endpoint

In the same Connect tab, choose Get SSH command. Use Copy under Run in your local shell to copy the displayed command. The SDK equivalent, using the client above, is:
Use all three returned values. The endpoint’s port is not necessarily 22. Do not substitute a public IP observed from inside the Computer: an outbound address is not an SSH endpoint.
Replace <SSH_HOST>, <SSH_PORT>, and <SSH_USER> with the endpoint response. -i selects your local private key. IdentitiesOnly=yes prevents unrelated keys in your agent from being tried.

Understand the first host-key prompt

Your SSH public key proves your identity to the Computer. The server’s host key helps your SSH client recognize the Computer. They are different keys. OpenSSH may ask you to trust the server on first connection. Obtain the endpoint through your authenticated Console or API; compare the fingerprint with a separately trusted value when one is available. The current endpoint response contains host, port, and user, but does not supply an independently authenticated host-key fingerprint. Treat first-use acceptance as first-use trust, not cryptographic verification provided by Deepest.
Do not disable host-key checking to silence a mismatch. A normal Stop/Start of the same Computer preserves its host key. A Clone is a new Computer with a new host key.

Confirm where you are

After connecting, run:
Expect Linux, the remote user identity, a Guest directory, and the message. Your local prompt returns when you run exit. For a remote command without an interactive session:
A successful SSH connection does not make every application command successful. Inspect the command’s exit status and output separately. If a connection drops after you sent a command, inspect its effects before running a mutating command again.

Keep a convenient SSH configuration

Add an entry to your local ~/.ssh/config after replacing the placeholders:
Then connect with ssh deepest-work. The alias is your local convenience; it creates no Deepest object. HostKeyAlias lets your client associate the host key with the stable Computer ID rather than a replaceable endpoint. Use a different alias for each Computer and confirm first-use trust when introducing it. Fetch the current endpoint again after a refused connection or platform reconnect. Endpoint host/port values are connection details and can change. Updating them in this entry does not change the Computer’s identity or disk.

Stop, reconnect, and revoke

To revoke with the SDK:
After revocation, test a new connection if you need to verify the effect. Revocation does not delete local private keys or third-party credentials inside the Guest. If the result is UNKNOWN, list the Computer’s keys before another change.

Respond to an exposed private key

Treat an exposed private key as a credential that needs replacement, not as a problem solved by renaming its label.
  1. Work from a trusted local device and your authenticated Console or control client. Generate a new key pair with a new filename; keep the new private key on that local device.
  2. Authorize only the new public key on each Computer that still needs this client’s access. Test a new connection using that new key and the current endpoint.
  3. List the affected Computers’ authorized keys and revoke the old key’s exact fingerprint on every Computer where it was granted. A grant is per Computer; replacing it on one does not revoke it elsewhere.
  4. Check a fresh connection using the old key and confirm that new access is refused. Existing SSH shells, SFTP sessions and tunnels may still be alive: if containment requires ending them, identify and terminate the affected Guest sessions, or explicitly Stop the Computer after considering its running work.
  5. Inspect any Computer that may have been accessed. Review affected files and third-party credentials, rotate exposed provider credentials through their own service, and preserve needed evidence. A replacement SSH key does not remove files an intruder may have changed or clear an already established third-party session.
If unauthorized access may be continuing, revoke the old authorization first instead of waiting for the replacement connection test. The trusted Console/control path can authorize your replacement afterward. Do not disable host-key checking or place the Account Agent Key inside the Guest as a workaround.

Troubleshoot the symptom

SSH processes and the applications they launch use the Computer’s memory, the Account’s shared CPU, and its storage. See Account resources. Stop work you no longer need; closing the SSH client alone is not a resource-release operation.

Continue

Use SFTP to move files, local port forwarding for a private tunnel, or VS Code Remote SSH for an IDE workflow. Precise request/response schemas live in the API reference, under SSH. Standard client behavior is documented in the official OpenSSH client manual and client configuration manual.