SSH: Difference between revisions

Pigs (talk | contribs)
Create ssh page, detail server and client configuration
 
Oluceps (talk | contribs)
 
(One intermediate revision by one other user not shown)
Line 44: Line 44:
   services.openssh = {
   services.openssh = {
     enable = true;
     enable = true;
     Ports = [ 5432 ];
     ports = [ 5432 ];
     settings = {
     settings = {
       PasswordAuthentication = false;
       PasswordAuthentication = false;
       KbdInteractiveAuthentication = false;
       KbdInteractiveAuthentication = false;
       PermitRootLogin = "no";
       PermitRootLogin = "no";
       AllowUsers = [ "myUser" ]
       AllowUsers = [ "myUser" ];
     };
     };
   };
   };
</nowiki>
</nowiki>
}}
|name=|lang=}}


In addition to these settings, consider enabling [[#Fail2Ban|Fail2Ban]] as a recommended baseline for security.
In addition to these settings, consider enabling [[#Fail2Ban|Fail2Ban]] as a recommended baseline for security.