grayform b33

← guides

Grayform apps · 15 minutes

Grayform Shell: connect your phone to your computer

First run, keys, Windows admin accounts, jump hosts, safe paste and fixes.

Grayform Shell is a terminal on your phone. It talks to your computer over SSH, the standard encrypted way to run commands remotely.

This is an early app. Menu names may shift a little between versions.

First run

  1. Open Grayform Shell.
  2. Choose Make a key. The app creates a key pair on your phone. The private half never leaves the phone.
  3. Tap Copy public key. It looks like one long line starting with ssh-ed25519.
  4. Send that line to your computer. Any private way works: a note to yourself, a file you move over USB.
  5. On the computer, add it to the trusted list (next section).
  6. Back in the app, choose Add computer. Enter a name, the address, your username and port 22.
  7. Tap the computer. The first time, the app shows a fingerprint. Check it looks right, then accept.

Let your computer trust the phone

The trusted list is a text file. Each line is one allowed key.

Windows, normal account

Open PowerShell and run:

New-Item -ItemType Directory -Force "$env:USERPROFILE\.ssh"
notepad "$env:USERPROFILE\.ssh\authorized_keys"

Paste the public key as one line. Save.

Windows, admin account

Check whether you are an admin:

net localgroup administrators

If your username is listed, Windows ignores the normal file. Use this one instead, in an admin PowerShell:

notepad C:\ProgramData\ssh\administrators_authorized_keys

Paste the key, save, then lock the file down. Windows refuses keys in a file others can edit:

icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F" /grant "SYSTEM:F"

macOS and Linux

mkdir -p ~/.ssh && chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

Paste the key, save.

Jump hosts

A jump host is a computer you reach first, to get to another one that is not directly reachable.

  1. Add the first computer as normal and check it connects.
  2. Add the second computer.
  3. In its settings, set Jump through to the first one.

On a desktop, the same thing is one flag:

ssh -J you@first-pc you@second-pc

Safe paste

Pasting into a terminal can run commands you did not see. Treat it carefully.

  1. Never paste a command you do not understand.
  2. Paste into the line first and read it before pressing Enter.
  3. Be wary of anything that pipes a download straight into a shell.
  4. Be careful with text copied from web pages. It can hide extra lines.

If it does not work

Timeout (nothing happens, then it fails). The phone cannot reach the computer at all.

  • Is the computer on and awake?
  • Are both on the same network, or both signed in to Tailscale?
  • Is the SSH server running? Run Get-Service sshd on Windows.
  • Is the firewall blocking port 22 on that network?

Login rejected (it connects, then refuses you). The computer was reached, but does not trust the key.

  • Is the key on one line, with nothing cut off?
  • Admin account on Windows? Use the administrators_authorized_keys file.
  • Did you run the icacls line?
  • Is the username spelled exactly right?
  • On macOS and Linux, are the permissions 700 and 600 as shown?

Fingerprint changed warning. Stop. Something changed on that computer, or something is in the way. Do not accept until you know why.