From 4621e6505ba8a07ae6e6100cbadf6c2c78850a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20La=CC=88mmer?= Date: Thu, 26 Nov 2026 11:16:10 +0100 Subject: [PATCH] FR-7571: document frbit's SSH and sign-in error hints Co-Authored-By: Claude Opus 5.5 --- 1.platform/04.automation/03.cli/03.setup.md | 10 +++++++--- 1.platform/04.automation/03.cli/04.usage.md | 16 ++++++++++++++-- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/1.platform/04.automation/03.cli/03.setup.md b/1.platform/04.automation/03.cli/03.setup.md index 2a627bc8..00513c21 100644 --- a/1.platform/04.automation/03.cli/03.setup.md +++ b/1.platform/04.automation/03.cli/03.setup.md @@ -1,7 +1,7 @@ --- created: 2026-11-17 -updated: 2026-11-19 -reviewed: 2026-11-19 +updated: 2026-11-26 +reviewed: 2026-11-26 reviewer: fl title: Set up the frbit CLI description: 'Sign in to the frbit CLI through the browser or with an API token, link the project folder, connect a coding agent and check the setup with frbit doctor.' @@ -35,6 +35,10 @@ The approval page also has an `Allow deletes` box, unticked by default. Without The credential expires after an hour and renews itself. The connection ends one year after approval, or after 30 days without use, whichever comes first; then run `frbit auth login` again. It is listed under `Connected apps` in the account menu of the dashboard. Its page there lists the apps and deletes the OAuth token. +An expired or revoked sign-in fails with `the sign-in expired or was revoked` and the `frbit auth login` command for the profile and host in use. A refused `FRBIT_TOKEN` is named as such. + +After the sign-in, frbit prints the next setup step. While the account has no SSH key, it also prints `Add an SSH key` with the link to the dashboard: `frbit ssh`, `frbit db` and `frbit files` need one. + `frbit auth status` shows the stored credential and the next open setup step. `frbit auth logout` removes it. ### Tokens in scripts and CI @@ -95,4 +99,4 @@ frbit completion install zsh # or bash, fish, powershell frbit doctor ``` -It checks the CLI version against the latest release, the sign-in, `ssh`, `rsync` and `git`, the linked environment with an SSH connection, and the agent setup. Each problem comes with the fix. It exits with 1 when a check fails, and `--json` prints the result for agents. +It checks the CLI version against the latest release, the sign-in, `ssh`, `rsync` and `git`, the linked environment with an SSH connection, and the agent setup. Each problem comes with the fix, a missing SSH key on the account or on this machine included. It exits with 1 when a check fails, and `--json` prints the result for agents. diff --git a/1.platform/04.automation/03.cli/04.usage.md b/1.platform/04.automation/03.cli/04.usage.md index 4c070af4..28ffe911 100644 --- a/1.platform/04.automation/03.cli/04.usage.md +++ b/1.platform/04.automation/03.cli/04.usage.md @@ -1,7 +1,7 @@ --- created: 2026-11-17 -updated: 2026-11-17 -reviewed: 2026-11-17 +updated: 2026-11-26 +reviewed: 2026-11-26 reviewer: fl title: frbit CLI usage description: 'Every frbit command group with its main options and examples: apps, environments, deployments, database and files sync, SSH, domains, jobs and backups.' @@ -73,6 +73,18 @@ frbit ssh --print # print the plain ssh command frbit connects with your own [SSH key](/1.platform/10.objects/12.ssh-key.md) and checks the host key of the fortrabbit SSH endpoints, so the first connection from CI needs no `known_hosts` entry. Without a terminal, ssh never prompts. +When the connection fails, frbit names the cause and the fix: + +| Cause | Fix | +|--|--| +| No SSH key on the account | Add the public key in the dashboard | +| No key on this machine | `ssh-keygen -t ed25519`, then add the public key | +| The key here is not on the account, or has a passphrase | Add its public key, or load it with `ssh-add` | +| Too many keys in the agent | `IdentitiesOnly yes` and the `IdentityFile` for the host in `~/.ssh/config` | +| No connection | Check the network, a firewall or VPN, and the [status page](https://status.fortrabbit.com) | + +More in [SSH troubleshooting](/1.platform/05.code-access/10.troubleshooting.md). + ## Database ```shell