# SSH and RDP access With SSH and Remote Desktop, you connect to Gary's computer from your own terminal and your own Remote Desktop app. Both come with Gary Max and Gary Unlimited. ## How it works You connect with the `gary` command line tool, which carries SSH and Remote Desktop through your Gary sign-in. - **No open port.** Gary's computer has no public address, and nothing on it listens on the internet. The connection goes out from your machine to `chat.getquantis.com` over HTTPS on port 443. - **Your key.** SSH accepts only the public keys you add to your account. There are no passwords. - **End to end.** The SSH session is encrypted between your machine and Gary's computer. QUANTIS's servers pass the bytes along and can't read them. On the web, the **Computers** page shows the commands to run. On iPhone, you connect by taking control. See "On iPhone" below. ## Before you start - A Gary Max or Gary Unlimited plan. On another plan, the page shows **Change plan**. - The `gary` tool on your machine. See [Gary on the command line](/command-line). - An SSH key pair. To make one, run `ssh-keygen -t ed25519`. ## Add your SSH public key 1. In the sidebar, choose **Computers**. 2. Under **SSH and Remote Desktop**, choose **Add a key**. 3. Paste your public key: the one line in a file ending `.pub`, such as `~/.ssh/id_ed25519.pub`. 4. Give it a name, such as "Work laptop". The name is optional. 5. Choose **Save**. A key works for every Gary on your account. You can keep up to 20 keys. Each one shows when it was last used. Never paste a private key. The private key is the file without `.pub`, and it stays on your machine. ## Connect with SSH The **Computers** page lists the commands for each Gary, each with **Copy**. For a Gary named Scout: ``` gary ssh scout ``` You get a shell on Gary's computer as Scout, in Scout's home folder. To use plain `ssh`, `scp`, or an editor's remote mode, add the entries the tool writes for you: ``` gary ssh-config >> ~/.ssh/config ssh scout scp report.csv scout:files/ ``` Each entry names one of your Garys and routes the connection through the `gary` tool. Editors that read `~/.ssh/config`, such as VS Code with Remote SSH, list your Garys as hosts. | Setting | Value | | --- | --- | | Host | The Gary's short name, as **Computers** shows it | | Address and port | None to enter. The tool connects out to `chat.getquantis.com` on port 443. | | User | Set by the tool. You're signed in as that Gary. | | Sign-in | Your SSH key. Passwords are off. | ## Check the host key The first time you connect, compare the fingerprint your SSH client shows with **Host key fingerprint** on the **Computers** page. They should match. The host key stays the same across restarts, updates, and resets of the computer. If your client ever warns that it changed, don't connect. [Contact support](/get-support). ## Connect with Remote Desktop ``` gary rdp scout ``` The tool opens your system's Remote Desktop app on Scout's desktop: Windows App on a Mac, Remote Desktop Connection on Windows, or the client you have on Linux. The tool makes a one-time password for the session and hands it to the app, so there's nothing to type. You see the same desktop Gary uses, at 1920 by 1200, with Chrome and the windows Gary left open. - **Gary waits while you're connected.** Its mouse and keyboard actions hold, as they do when you take control. Work that doesn't use the desktop carries on. - **The session ends when you close the app,** or after 30 minutes with no input. Gary picks the desktop up again. ## What you can do once you're in It's the same computer Gary uses, and you're signed in as that Gary. - Read, edit, and move the files in its home folder. - Install tools and run scripts. See what persists in [Use Gary's computer and browser](/computer-and-apps). - Run a long job in `tmux` or with `nohup`, and ask Gary to check on it later. - Copy files in and out with `scp`. - Look at a page Gary left open, or sign in to a site for it over Remote Desktop. ::: cards 2 ### Hand Gary a dataset Copy a large file in, then ask about it in chat. > I copied sales-2026.parquet into your files folder. Tell me which regions grew fastest quarter over quarter. ### Check a long job Start it over SSH, and let Gary watch it. > I started the backfill in a tmux session named backfill. Check it every 30 minutes and message me when it finishes or fails. ### Install a tool for a routine Set the computer up once, then schedule the work. > I installed ffmpeg and put a script at ~/bin/transcode.sh. Run it on every new file in the recordings folder each night at 1 AM. ### Edit in your own editor Work in the same files as Gary. > I'm editing the report template over SSH. Don't change template.html until I say I'm done. ::: Some things are off, to keep the computer isolated: - **No port forwarding** of any kind, and no SSH agent or X11 forwarding. To see a web app running on the computer, use Remote Desktop or the preview in a code session. - **No root.** You have the Gary's own permissions. - **The same network rules.** Traffic from your shell goes through the same proxy and site list as Gary's own. It can't reach another person's computer. ## What Gary sees Gary can see what you leave behind: files you change, tools you install, and programs still running in its account. Tell Gary what you did, so it doesn't undo it. Gary doesn't see your keystrokes or your terminal's output, and it isn't notified when you connect. Over Remote Desktop, password and code fields are emptied before Gary uses the desktop again. ## What is recorded Your action record lists each key you add or remove, and each session: which Gary, SSH or Remote Desktop, the key used, the address you connected from, when it opened and closed, and how much data passed. What you type and what the desktop shows are never recorded. To read it, open **Settings**, then **Approvals**, then **Action record**. ## Remove a key 1. Open **Computers**. 2. Under **SSH keys**, choose the key, then **Remove Key**. 3. Confirm. The key can't be used to sign in to your Garys' computers any more. Remove a key as soon as a laptop is lost or replaced. If you move to a plan without SSH and Remote Desktop, open sessions close within a minute. Your keys stay saved for when you come back. ## Let Gary use SSH on your own servers The other direction is separate: Gary can run commands on servers you list, such as a build machine or a web host. This is on every plan. 1. Open **Computers**, choose the Gary, and choose **Add a host**. 2. Enter a name, the server's address and port, the user, and the server's host key. 3. Copy the Gary's public key from the page into that user's `authorized_keys` file on the server. A Gary can have up to 8 hosts. Enter a public IP address. For servers on a private network, see [Private networks](/private-networks). Gary asks before it connects. The card names the host, shows the first command, and says "two hours". :::: window purple **Ops** ยท 6:02 AM > The nightly build on build-box looks stuck. Find out why. I'd like to look at the build log and the running processes on build-box. ::: card Needs your OK Let Ops use build-box for two hours? First command: `tail -n 200 /var/log/build/nightly.log` [Approve] [Deny] ::: :::: When you approve, Gary can run commands on that host, in that chat, for two hours without asking again. To end it early, open **Computers** and remove the grant. - Gary's private key for your servers is kept apart from its computer. Gary's own code can't read it. - Gary connects only to the host key you entered, and it never tries a password. - One command runs for 30 minutes at most. For a longer job, Gary starts it in the background on the server and checks back. - The action record keeps the host, the time, and whether each command succeeded. It doesn't keep the output. ## Messages | Message | What to do | | --- | --- | | At most 20 keys. Remove one first. | Remove a key you no longer use. | | That key couldn't be added. Try again. | Paste the whole line from the `.pub` file, starting with the key type, such as `ssh-ed25519`. | | SSH and Remote Desktop couldn't be checked. Try again. | Choose **Check again**. | | Permission denied (publickey) | Your SSH client offered a key that isn't on your account. Add its public key, or point the client at the right key. | ## On iPhone Gary for iPhone has no SSH or Remote Desktop page. To use Gary's computer from your phone, tap **Computers**, open the Gary's desktop, and tap **Take control**. See [Gary for iPhone](/iphone). Your keys and the commands are shown on the web.