Docs menu

Setting up your first SSH connection

This guide walks you through adding your first SSH server to TermAI. Takes about 3 minutes. You'll need: the server's IP or hostname, your username, and either a password or a private key.

⏱ Setup guide · Updated October 9, 2026

Before you start

  • A TermAI account (or skip if you don't want to sync)
  • Server credentials: hostname/IP, port (usually 22), username, password or key

Step 1 — Open the connection editor

Open the SSH tab, then tap + or Add Connection. The connection editor includes a label, host, port, username, authentication, group and tags.

Step 2 — Fill in the basics

  1. Label — a friendly name like "prod-web-01"
  2. Host — the IP address or hostname (192.168.1.100, myserver.example.com)
  3. Port — defaults to 22
  4. Username — your SSH username (often root, ubuntu, or your name)

Step 3 — Choose authentication

Enter the password for this server account. Use the correct SSH username, not your TermAI account email. If the server disables password authentication, use a private key instead.

Step 4 — First connect

Connect using the saved entry. TermAI records the host key on first use (TOFU) and warns when it changes. First-use trust is not independent proof of the server’s identity: verify the fingerprint through your administrator or provider console before sending sensitive information. Do not accept a changed key until you understand why it changed.

ℹ️ What's a host-key fingerprint? It's a unique identifier for the server. Verifying it the first time prevents man-in-the-middle attacks. TermAI remembers the fingerprint and warns you if it ever changes.

Troubleshooting

Error Likely cause Fix
Connection refused SSH not running, wrong port Check the server is up; verify port
Permission denied (publickey) Wrong key, or server lacks your public key Re-copy the public key into authorized_keys
Host key verification failed Server's host key changed Investigate (legit or MITM); update Known Hosts

Next steps

Report a documentation issue → Updated October 9, 2026