mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
examples/configuration.nix: disable passwordAuthentication
This is a sensible default. Also clarify the pubkey setup.
This commit is contained in:
parent
e093bb64d9
commit
7402212263
@ -234,10 +234,15 @@
|
||||
networking.hostName = "host";
|
||||
time.timeZone = "UTC";
|
||||
|
||||
# FIXME: Add your SSH pubkey
|
||||
services.openssh.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
passwordAuthentication = false;
|
||||
};
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [ "" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
# FIXME: Replace this with your SSH pubkey
|
||||
"ssh-ed25519 AAAAC3..."
|
||||
];
|
||||
};
|
||||
|
||||
# FIXME: Uncomment this to allow the operator user to run
|
||||
|
Loading…
Reference in New Issue
Block a user