{ services.openssh = { enable = true; allowSFTP = true; settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false; }; extraConfig = '' AllowTcpForwarding yes X11Forwarding no AllowAgentForwarding no AllowStreamLocalForwarding no AuthenticationMethods publickey ''; }; networking.firewall = { enable = true; allowedTCPPorts = [ 22 ]; allowedUDPPorts = [ ]; }; }