{ ... }: { services.openssh = { enable = true; ports = [22]; settings = { PermitRootLogin = "without-password"; PasswordAuthentication = false; #The following options are set in anticipation of configuring #GPG agent forwarding #Removes unused sockets before creating new ones StreamLocalBindUnlink = "yes"; #Allow forwarding ports GatewayPorts = "clientspecified"; }; }; }