From: James Bunton Date: Wed, 6 Mar 2024 06:25:12 +0000 (+1100) Subject: sshd_config ready to use X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/a2a722a86f475ae58406da404d52bc6d2e6dfed0 sshd_config ready to use --- 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