RemoHop

中文

Docs

Host access control

The owner of a host decides what connected clients may do. These commands run on the host and take effect at once, also for sessions already connected:

remohop config feature input off
remohop config ask on
remohop config otp on
ControlCommandEffect
Feature switchesremohop config feature NAME on|offNAME is shell, file, forward, clip, screen, input, info, vpn, serial or usb; all are on by default
VPN routingremohop config vpn-exit onlet VPN clients reach networks beyond the host's own LAN, and use the host as an exit; off by default
Approvalremohop config ask onevery password login waits for a yes at the host: answer in the remohop host terminal, or with remohop host approve N / remohop host deny N
Approval for known clientsremohop config ask-paired onwith ask on, paired clients and authorised keys need approval too
One-time passwordremohop config otp onthe temporary password is replaced after each login; remohop otp prints the current one, remohop otp new replaces it
Fixed passwordremohop passwdset or (--clear) remove it; remohop status never prints a fixed password
Pairingsremohop host paired, remohop host revoke NAMElist and remove paired clients and authorised keys
USB devicesremohop usb allow BUSID, remohop usb allowedallow each device before a client may attach it
Account devicesremohop config account-trust onaccept the account's other devices like authorised keys; off by default (see Accounts)
Audit logremohop loglogins accepted and refused, approval decisions, first use of each feature, session ends

Two more settings: remohop config set name office-pc gives the device a name shown to peers (in ping, approval prompts and remohop status), and remohop config set term-keep 2h changes how long a detached shell stays on the host.

A client can also log in with its identity key alone, with no password to guess. On the client, print the public key; on the host, authorise it; back on the client, record the host's key line that authorize printed:

remohop key export
remohop authorize "remohop-key ... laptop"
remohop peers trust 276941009 "remohop-key ... host"

The first and third commands run on the client, the second on the host. remohop key export --private FILE and remohop key import FILE --yes move an identity to another machine; remohop key gen --yes replaces it. security.md explains what each control protects against.

Source file (GitHub)