From a2a722a86f475ae58406da404d52bc6d2e6dfed0 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Wed, 6 Mar 2024 17:25:12 +1100 Subject: [PATCH] sshd_config ready to use --- etc/ssh/sshd_config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config index f934f75..5815f44 100644 --- a/etc/ssh/sshd_config +++ b/etc/ssh/sshd_config @@ -1,6 +1,6 @@ LogLevel INFO Port 22 -Port 20050 + AuthenticationMethods publickey HostKey /etc/ssh/ssh_host_ed25519_key @@ -8,7 +8,7 @@ HostKeyAlgorithms ssh-ed25519 PubkeyAcceptedKeyTypes ssh-ed25519 UsePAM yes -AllowUsers root userA userB +AllowUsers root PermitRootLogin prohibit-password Subsystem sftp internal-sftp -- 2.39.2