fix(remote): treat declined device authorization as cancellation
This commit is contained in:
1 parent
3ac60f0780
commit
92b0f1d285
2 files changed
+5
-2
No files matched your search
@@ -127,7 +127,9 @@ def pair(
|
||||
host = _default_host() or typer.prompt("Server public IP or hostname (shown in your cloud console)")
|
||||
typer.echo(f"\nAuthorize {invitation.label} to use nanobot on {ssh_user}@{host}?\nConfig: {config}\nServer fingerprint: {fingerprint(host_key)}")
|
||||
typer.echo("This grants full nanobot WebUI access, including configured tools and settings.\nA dedicated SSH key can only reach this nanobot port; no shell or other forwarding.\nAuthorization lasts 90 days. No existing keys, firewall rules or model settings change.")
|
||||
typer.confirm("Authorize this computer?", abort=True, default=False)
|
||||
if not typer.confirm("Authorize this computer?", default=False):
|
||||
typer.echo("Cancelled. No device was authorized. Run the pairing command again when ready.")
|
||||
return
|
||||
# Check the service is running before granting access; no credential is sent.
|
||||
import socket
|
||||
|
||||
|
||||
Reference in new issue
Block a user