1{ 2 services.openssh = { 3 enable = true; 4 5 startWhenNeeded = true; 6 7 settings = { 8 PasswordAuthentication = false; 9 KbdInteractiveAuthentication = false; 10 11 PermitRootLogin = "no"; 12 13 StreamLocalBindUnlink = true; 14 }; 15 }; 16}