mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-25 22:35:03 +01:00
ssh config
This commit is contained in:
parent
9b9396bda1
commit
c6d2043ef2
@ -5,10 +5,13 @@
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
#ports = [ 22 ];
|
||||
# Forbid root login through SSH.
|
||||
settings.PermitRootLogin = "no";
|
||||
# Use authorized keys only.
|
||||
settings.PasswordAuthentication = false;
|
||||
# Forbid/Limit root login through SSH.
|
||||
#settings.PermitRootLogin = "no";
|
||||
#settings.PermitRootLogin = "prohibit-password";
|
||||
# Enabling this is required for commands such as sftp and sshfs.
|
||||
allowSFTP = false;
|
||||
};
|
||||
|
||||
# SSH public key(s) allowed to connect via SSH.
|
||||
|
Loading…
Reference in New Issue
Block a user