Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

syq persist

Keep SSH connections open between commands, and let servers send copies and requests to your laptop. Start with Use your laptop from a server; Persistence details covers profiles and limits.

syq persist [OPTIONS] <COMMAND>
CommandPurpose
persist auth-fromSave the –auth-from choice that later commands use by default
persist ssh-configPrint an OpenSSH config that lets ssh, scp, or Git use an approved connection
persist receiveSet up receiving, and approve or deny incoming copy and command requests
persist destinationsOn a server, list or release receiving names
persist connectConnect to a server now and keep the connection open for later commands
persist onKeep SSH connections open for later syq commands
persist offTurn persistence off and close its SSH connections, including receiving; a set made by on –ephemeral is deleted with its settings
persist statusShow connection readiness and any receiving problem

Options (also available on subcommands)

Argument / optionMeaning
--pscope <PATH>Use the scope at PATH, with its own connections and settings, instead of the default scope

Help (also available on subcommands)

Argument / optionMeaning
-h, --helpShow common usage and options
--help-allShow all options and details

syq persist auth-from

Choose or show authorization defaults.

syq persist auth-from [OPTIONS] [auto|ssh|@NAME|HOST]

Arguments

Argument / optionMeaning
[auto|ssh|@NAME|HOST]Value to save, as for –auth-from; omit to show the saved choices

Options

Argument / optionMeaning
--for <HOST>Apply to this exact destination hostname or SSH alias, for any login/port
--resetRemove the saved choice for –for HOST, or without –for, reset the default to auto

syq persist ssh-config

Export an existing approved account connection as an OpenSSH configuration for ssh -F FILE and other SSH tools.

syq persist ssh-config [OPTIONS] <HOST>

Arguments

Argument / optionMeaning
<HOST>Approved SSH endpoint: [USER@]HOST[:PORT]

Options

Argument / optionMeaning
--auth-from <auto|ssh|@NAME|HOST>Which approval to export: the one from @NAME or HOST, or with auto, the only one there is (default: SYQ_AUTH_FROM, then the saved choice, then auto; ssh is not accepted)

syq persist receive

syq persist receive [OPTIONS] <COMMAND>
CommandPurpose
persist receive pendingShow incoming copy and command requests awaiting approval on this machine
persist receive approveAllow one pending request using the ID from persist receive pending
persist receive permissionsList or remove account permissions remembered on this machine
persist receive denyDeny one pending request using the ID from persist receive pending
persist receive onEnable or configure a receiving profile (without –name, use the first profile)
persist receive offTurn receiving off and close its connections; other persistent connections stay open
persist receive removeRemove a saved receiving profile and stop its connections
persist receive statusShow receiving settings and background connection state
persist receive waitWait for a connection with a deadline

syq persist receive pending

Use a returned request ID with approve or deny.

syq persist receive pending [OPTIONS]

Options

Argument / optionMeaning
--jsonPrint the requests as JSON
--waitWait for an incoming request, with a deadline
--timeout <SECONDS>With –wait, give up after this many seconds

[default: 30]

syq persist receive approve

Approving a copy or command allows that one request. Approving an SSH account request grants session access; add --remember to allow later logins too.

syq persist receive approve [OPTIONS] <ID>

Arguments

Argument / optionMeaning
<ID>Request ID shown by persist receive pending

Options

Argument / optionMeaning
--rememberRemember this SSH account permission for future receiving connections or provider logins

syq persist receive deny

syq persist receive deny [OPTIONS] <ID>

Arguments

Argument / optionMeaning
<ID>Request ID shown by persist receive pending

syq persist receive permissions

Manage remembered account permissions on the laptop. These commands do not need a running receiving service.

syq persist receive permissions [OPTIONS] <COMMAND>
CommandPurpose
persist receive permissions listShow remembered SSH account permissions
persist receive permissions removeRemove a remembered permission; sessions already logged in can continue

syq persist receive permissions list

--json prints structured records.

syq persist receive permissions list [OPTIONS]

Options

Argument / optionMeaning
--jsonPrint the permissions as JSON

syq persist receive permissions remove

syq persist receive permissions remove [OPTIONS] <ID>

Arguments

Argument / optionMeaning
<ID>Permission ID shown by persist receive permissions list

syq persist receive on

Settings you leave out keep their saved values. A new profile asks for approval with desktop prompts, starts relative paths in your home directory without confining copies to it, and accepts requests through every connection. Use --root to confine copies to one directory and --connection to limit which servers can use the profile. See profile settings, including what a change cancels, and copy limits.

syq persist receive on [OPTIONS]

Options

Argument / optionMeaning
--auto-approve-root <DIR>Automatically approve downloads confined to this directory
--no-auto-approve-rootRequire approval for every download again
--connection <ENDPOINT>Replace the allowed connection list and connect these endpoints now (repeat for several)
--all-connectionsMake this profile available through every connected SSH account
--notify <MODE>Show desktop prompts, or use only local pending/approve/deny commands

[possible values: desktop, off]
--name <NAME>Create or update this named profile; omitted means the first profile
-C, --cwd <DIR>Starting directory for downloads and commands; absolute paths and .. can still reach elsewhere
--auto-cwdChoose the starting directory automatically: the –root directory, else –auto-approve-root, else your home directory
--root <DIR>Allow downloads only inside DIR, even approved ones
--no-rootRemove the –root restriction
--max-bytes <SIZE>Maximum bytes one transfer may write (default: 100G)
--max-entries <N>Maximum entries one transfer may change (default: 1000000)
--max-delete <N>Permit pruning up to N entries per transfer (default: 0)

syq persist receive off

Turn off the named profile, or every profile without --name. Your persistent SSH connections keep working.

syq persist receive off [OPTIONS]

Options

Argument / optionMeaning
--name <NAME>Stop only this profile; without –name, stop all profiles

syq persist receive remove

The last profile can be disabled but not removed. Names it registered on servers remain until you forget them.

syq persist receive remove [OPTIONS] <NAME>

Arguments

Argument / optionMeaning
<NAME>Profile to remove

syq persist receive status

syq persist receive status [OPTIONS]

Options

Argument / optionMeaning
--jsonPrint the settings and state as JSON
--name <NAME>Show only this profile

syq persist receive wait

Exits nonzero on failure or timeout. It does not start a connection.

syq persist receive wait [OPTIONS] <HOST>

Arguments

Argument / optionMeaning
<HOST>SSH server whose receiving connection to wait for

Options

Argument / optionMeaning
--name <NAME>Wait for this profile; otherwise wait for every enabled profile
--timeout <SECONDS>Give up after this many seconds

[default: 30]

syq persist destinations

Run these on a server. Receiving names belong to the whole OS account, so --pscope does not filter them, and forgetting one releases it in every scope.

syq persist destinations [OPTIONS] <COMMAND>
CommandPurpose
persist destinations listList the receiving names registered here and whether each machine responds
persist destinations forgetRelease a disconnected machine’s receiving name so another machine can claim it
persist destinations waitWait for a connection with a deadline

syq persist destinations list

syq persist destinations list [OPTIONS]

syq persist destinations forget

Run this before you replace the laptop that registered a name, so the new one can claim it.

syq persist destinations forget [OPTIONS] <NAME>

Arguments

Argument / optionMeaning
<NAME>Receiving name to release, without @

syq persist destinations wait

syq persist destinations wait [OPTIONS] <NAME>

Arguments

Argument / optionMeaning
<NAME>Receiving name to wait for, without @

Options

Argument / optionMeaning
--timeout <SECONDS>Give up after this many seconds

[default: 30]

syq persist connect

Connect to HOST and wait up to --timeout seconds for receiving to be ready.

syq persist connect [OPTIONS] <HOST>

Arguments

Argument / optionMeaning
<HOST>SSH endpoint ([USER@]HOST[:PORT]); receiving names are not accepted

Options

Argument / optionMeaning
--auth-from <auto|ssh|@NAME|HOST>Whose SSH access to connect with: this machine’s own (auto or ssh), or access approved by a receiving machine (@NAME) or SSH authorization provider (HOST)
--syq-path <PATH>Run the remote syq at PATH instead of syq’s automatically installed copy
--no-bootstrapRun the syq found in the remote $PATH instead of syq’s automatically installed copy
--timeout <SECONDS>After connecting, wait up to this many seconds for receiving to be ready

[default: 30]

syq persist on

syq persist on [OPTIONS]

Options

Argument / optionMeaning
--ephemeralCreate a new scope, with its own connections and settings, and print its path for –pscope, instead of turning persistence on for your user

syq persist off

syq persist off [OPTIONS]

syq persist status

Show connections without starting them. --json prints machine-readable status.

syq persist status [OPTIONS]

Options

Argument / optionMeaning
--jsonPrint the status as JSON