mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
ssh config
This commit is contained in:
parent
9b9396bda1
commit
c6d2043ef2
@ -5,10 +5,13 @@
|
|||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
#ports = [ 22 ];
|
#ports = [ 22 ];
|
||||||
# Forbid root login through SSH.
|
|
||||||
settings.PermitRootLogin = "no";
|
|
||||||
# Use authorized keys only.
|
# Use authorized keys only.
|
||||||
settings.PasswordAuthentication = false;
|
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.
|
# SSH public key(s) allowed to connect via SSH.
|
||||||
|
Loading…
Reference in New Issue
Block a user