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.

Blame · packaging/sshd/ssh-shell

Line attribution on main · 12 line(s)

09610c0f
Keenan Nemetz
16d ago
1 #!/bin/sh
2 # The login shell of the front door's account.
3 #
4 # sshd runs a forced command through the account's login shell with -c, so the
5 # account needs a shell that execs exactly one thing. ssh_user is an account
6 # name, not a command line, so the shell has to be a single path: this wrapper is
7 # that path, and all it does is hand over to `vole ssh-shell`, which refuses
8 # everything except the forced command `vole ssh-authorized-keys` printed.
9 #
10 # Nothing here parses $@: the arguments are passed through untouched, and the
11 # decision about what may run is made in Go where it is tested.
12 exec /usr/bin/vole ssh-shell "$@"