SSH: Difference between revisions
Create ssh page, detail server and client configuration |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 44: | Line 44: | ||
services.openssh = { | services.openssh = { | ||
enable = true; | enable = true; | ||
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. | ||