]> code.delx.au - monosys/commitdiff
etc/ssh/sshd_config example
authorJames Bunton <jamesbunton@delx.au>
Mon, 29 Jan 2024 13:16:49 +0000 (00:16 +1100)
committerJames Bunton <jamesbunton@delx.au>
Mon, 29 Jan 2024 13:16:49 +0000 (00:16 +1100)
etc/ssh/sshd_config [new file with mode: 0644]

diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config
new file mode 100644 (file)
index 0000000..f934f75
--- /dev/null
@@ -0,0 +1,15 @@
+LogLevel INFO
+Port 22
+Port 20050
+
+AuthenticationMethods publickey
+HostKey /etc/ssh/ssh_host_ed25519_key
+HostKeyAlgorithms ssh-ed25519
+PubkeyAcceptedKeyTypes ssh-ed25519
+UsePAM yes
+
+AllowUsers root userA userB
+PermitRootLogin prohibit-password
+
+Subsystem sftp internal-sftp
+AcceptEnv LANG LC_* COLORFGBG