Disallow password auth for data user

This commit is contained in:
Charlotte Van Petegem 2022-06-04 01:47:26 +02:00
parent 1de2b2813d
commit 535f3db618
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -34,6 +34,8 @@
AllowTcpForwarding no
AllowAgentForwarding no
ForceCommand internal-sftp
Match user data
PasswordAuthentication no
'';
authorizedKeysFiles = [ "/run/secrets/%u_authorized_keys" ];
};