jailsetup.sh: improve sshd_config for mob and git
commitbf00eb188ff2e7c147f6288d0400bd8ae668ca87
authorKyle J. McKay <mackyle@gmail.com>
Thu, 9 Jul 2020 09:12:20 +0000 (9 02:12 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 9 Jul 2020 09:12:20 +0000 (9 02:12 -0700)
tree2ee1467567f54445285b40f8b90aa737ebeeb19c
parentcc4e0d4d63eb9c036f45ccdd05db54d16c5cdc7c
jailsetup.sh: improve sshd_config for mob and git

Make use of the "Match" keyword so that password authentication
will only be accepted for the "mob" and "git" user and that
empty passwords are also only enabled for those users (which
are actually empty password users).

With this change in place, attempts to connect with an
unrecognized public key (for non-mob, non-git users) will
no longer incorrectly prompt for a password (which doesn't
exist).

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jailsetup.sh