Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Add vole ssh-config and finish the macOS sshd front door

014569126b8ffc3e78242d32228e3e8ea9014db3 · Keenan Nemetz · 3d ago · parent 75478a9d

Add vole ssh-config and finish the macOS sshd front door

Add the ssh-config command that renders the sshd drop-in with the real binary,
config, and socket paths, defaulting to the host platform and accepting
overrides. Regenerate the CLI reference.

Rewrite the macOS front-door procedure in the deploy guide end to end: render
with ssh-config, enable Remote Login, install the ssh-shell wrapper, create the
forced-command account with sysadminctl, and decide the socket directory's
group (one shared group with setgid, so the 0660 socket is reachable by both
the service account and git).

docs/cli.md +24

@@ -719,6 +719,30 @@ through the login shell with `-c`. It recognises the single command
719 719 ssh-authorized-keys printed, `vole ssh-exec ...`, and execs it directly;
720 720 anything else, including an interactive session with no command, is refused.
721 721
722 ### ssh-config
723
724 ```sh
725 vole ssh-config [--platform linux|darwin] [--user <account>] [--socket <path>]
726 ```
727
728 Renders the drop-in against the platform's defaults, then applies each
729 explicit flag over the default it names. It prints the file and changes
730 nothing: installing it is the operator's job, and the header says so.
731
732 The platform changes the commands and paths, not the Match block. The same
733 Match block disables everything but the forced command on both.
734
735 | Option | Used by | Meaning |
736 |---|---|---|
737 | `--platform <os>` | — | the platform the drop-in's commands are written for: linux or darwin (default this machine's OS) |
738 | `--destination <path>` | — | the path the drop-in will be installed at, named in the header's Include line |
739 | `--user <account>` | — | the account sshd runs the forced command as; also the Match User |
740 | `--service-user <account>` | — | the account vole serve runs as, which sshd runs AuthorizedKeysCommand as |
741 | `--shell <path>` | — | the login shell of the user, the wrapper that runs the forced command |
742 | `--socket <path>` | — | the front door's Unix socket, printed as ssh_socket |
743 | `--vole <path>` | — | the absolute path to the binary sshd runs |
744 | `-c, --config <path>` | — | the vole.toml to read; default is ./vole.toml, then ~/.vole/vole.toml |
745
722 746 ## Help and version
723 747
724 748 ### help