sshd/anoncvs.conf: vcs users shouldn't ever be asked for a password

even if the system would allow that.
This commit is contained in:
Aminda Suomalainen 2021-02-02 13:06:04 +02:00
parent 2711c5975e
commit 3260950712
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# Version Control System accounts musn't have X11Forwarding, TCP Forwarding
# or TTY. The anoncvs is usually a comment in stock sshd_config
Match User anoncvs,git,gitea
PasswordAuthentication no
AuthenticationMethods publickey
X11Forwarding no
AllowTcpForwarding no
PermitTTY no