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):
execute --quickchr <name> --via ssh '<cli>'transfer --quickchr <name> … --via sftpterminal --quickchr <name>(ssh is terminal's only quickchr transport)
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
Recreate the machine with secure login:
quickchr add … --secure-login/quickchr start <name> --secure-loginon its first boot, orQuickCHR.start({ secureLogin: true }). The descriptor then advertisesprivate-keyinbatchModes, and--quickchrSSH works unchanged.Or bring your own key and target the endpoint directly. Install the public key over the non-SSH service in
keyInstallVia, then dial the forwarded port. Pin--via: execute's default (native-api, or aCENTRS_VIAsetting) may not be a service the machine forwards. With nokeyInstallVia, the machine forwards no service to install a key over, and the remediation omits this step.centrs execute --quickchr <name> --via <keyInstallVia> '/user/ssh-keys/add user=<user> key="<public key>"' --yes centrs terminal --host 127.0.0.1 --port <port> --username <user> --ssh-key <private key> --insecure--quickchritself rejects--ssh-key(tikoci/centrs#420), so this path gives up the machine-name lookup.--insecureis needed because the ephemeral VM's host key changes at a reused loopback port. RouterOS's default/ip/ssh password-authentication=yes-if-no-keyturns off SSH password login for a user once it has a key; REST and API are unaffected.Or skip SSH:
executeandtransfercan use--via rest-api/--via native-api(listed inavailableServices). Their uploads are limited to 60 KB, so a largertransferupload still needs one of the key-based routes above.terminalcannot skip SSH, since neither service has a terminal capability.
See docs/CONSTITUTION.md →
Resolution providers for why a provider target never falls back to
ambient credentials.