ssh: require public key authentication
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.openssh.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PasswordAuthentication = false;
|
||||
settings.KbdInteractiveAuthentication = false;
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "macmini";
|
||||
|
||||
Reference in New Issue
Block a user