Add ssh configuration.
This commit is contained in:
parent
a5d5943bac
commit
cfa21559e1
4 changed files with 76 additions and 5 deletions
2
etc/ssh/.gitignore
vendored
Normal file
2
etc/ssh/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/moduli
|
||||
/ssh_host_*_key*
|
7
etc/ssh/ssh_config
Normal file
7
etc/ssh/ssh_config
Normal 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
12
etc/ssh/sshd_config
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue