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
| Control | Command | Effect |
|---|---|---|
| Feature switches | remohop config feature NAME on|off | NAME is shell, file, forward, clip, screen, input, info, vpn, serial or usb; all are on by default |
| VPN routing | remohop config vpn-exit on | let VPN clients reach networks beyond the host's own LAN, and use the host as an exit; off by default |
| Approval | remohop config ask on | every 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 clients | remohop config ask-paired on | with ask on, paired clients and authorised keys need approval too |
| One-time password | remohop config otp on | the temporary password is replaced after each login; remohop otp prints the current one, remohop otp new replaces it |
| Fixed password | remohop passwd | set or (--clear) remove it; remohop status never prints a fixed password |
| Pairings | remohop host paired, remohop host revoke NAME | list and remove paired clients and authorised keys |
| USB devices | remohop usb allow BUSID, remohop usb allowed | allow each device before a client may attach it |
| Account devices | remohop config account-trust on | accept the account's other devices like authorised keys; off by default (see Accounts) |
| Audit log | remohop log | logins 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.