ssh config

This commit is contained in:
Daniel Langbein 2023-09-17 15:34:38 +02:00
parent 9b9396bda1
commit c6d2043ef2
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -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.