Add ssh configuration.

This commit is contained in:
Darren 'Tadgy' Austin 2025-09-11 16:22:56 +00:00
commit cfa21559e1
4 changed files with 76 additions and 5 deletions

2
etc/ssh/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/moduli
/ssh_host_*_key*

7
etc/ssh/ssh_config Normal file
View file

@ -0,0 +1,7 @@
Include /etc/ssh/ssh_config.d/*.conf
Host *
ControlPath ~/.ssh/%u@%l->%r@%h:%p
SendEnv LANG LC_*
VerifyHostKeyDNS yes
VisualHostKey yes

12
etc/ssh/sshd_config Normal file
View file

@ -0,0 +1,12 @@
Include /etc/ssh/sshd_config.d/*.conf
Port 25422
AcceptEnv LANG LC_*
LoginGraceTime 30
MaxStartups 5
PermitRootLogin prohibit-password
StreamLocalBindUnlink yes
Subsystem sftp internal-sftp
UsePAM yes
X11Forwarding no