Update ssh settings

This commit is contained in:
Andreas Zweili 2023-06-04 14:36:06 +02:00
parent 0c0d307916
commit 3a7bae91af
1 changed files with 5 additions and 3 deletions

View File

@ -33,9 +33,11 @@
programs.ssh.startAgent = true;
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
extraConfig = ''
AllowTcpForwarding yes
X11Forwarding no