osmates remote key new
Make a new device key for this Mac; every paired Mac pairs again.
osmates remote key new [--yes] [--json]The Macs that may connect here and those this Mac reaches pin the old key, so each pairing goes with it, and their sessions here end with their hold on machines. Without --yes, it asks first.
Arguments
--yesDo not ask first.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/remote/key/new.json
droppedarray of objectsRequireddropped[].fingerprintstringRequireddropped[].idstringRequireddropped[].namestringRequiredstatusobjectRequiredstatus.cloudstring or objectRequiredOne of
off,starting, or an object that holds one key:servingorfailed.status.cloudGrantsintegerRequiredstatus.connectionsintegerRequiredstatus.deviceKeystringOne of
needsPermission,denied,missing,unreadable.status.fingerprintstringstatus.helperRunningbooleanRequiredstatus.networkListeningbooleanRequiredstatus.networkProblemstringstatus.pairedMacsintegerRequiredstatus.passkeysintegerRequiredstatus.reachedMacsintegerRequiredstatus.settingsobjectRequiredstatus.tailnetstring or objectRequiredOne of
off,starting, or an object that holds one key:servingorfailed.status.tokensintegerRequiredstatus.urlstringRequired
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |