← centrs docs

quickchr/ssh-auth-unavailable

The quickchr machine forwards SSH, but its descriptor vouches for no verified SSH key, so centrs has nothing to log in with non-interactively. centrs never falls back to an ambient ssh-agent identity or a password prompt for a provider target: an agent cannot answer a prompt, and an unrelated key would widen trust beyond what quickchr verified.

Typical trigger

An SSH-backed command against a --quickchr target whose descriptor SSH endpoint has an empty auth.batchModes (or private-key with no privateKeyPath):

terminal is stricter: it also raises this code when the only batch mode is agent-or-config, because it needs a privateKeyPath. An interactive ssh with no key would offer ambient agent/config identities. With the key, the console is limited to public-key auth (PreferredAuthentications=publickey), so a rejected key fails rather than prompting for a password.

A machine with no SSH service at all, or one quickchr marks unavailable, is quickchr/unsupported-via instead.

quickchr creates and verifies its managed key only on a machine's first boot with secure login, for its auto-created quickchr user. A machine started without --secure-login (the default), or created with --add-user, has none, and a booted machine cannot gain one yet (tikoci/quickchr#253).

The error context carries machine, host, port, username, modes, batchModes, and availableServices (the machine's other live services), so a caller can build the direct call below without parsing the message. When the machine forwards native-api or rest-api, keyInstallVia names the one the key-install command uses (native-api first).

Fix

See docs/CONSTITUTION.md → Resolution providers for why a provider target never falls back to ambient credentials.