Create sshd_config
This commit is contained in:
parent
a5c74948be
commit
9e434d535b
1 changed files with 34 additions and 0 deletions
34
sshd_config
Normal file
34
sshd_config
Normal file
|
@ -0,0 +1,34 @@
|
|||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
|
||||
Port 29
|
||||
|
||||
LoginGraceTime 2m
|
||||
PermitRootLogin no
|
||||
StrictModes yes
|
||||
MaxAuthTries 3
|
||||
MaxSessions 4
|
||||
|
||||
AllowUsers sysadmin
|
||||
|
||||
PubkeyAuthentication yes
|
||||
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
|
||||
PasswordAuthentication no
|
||||
PermitEmptyPasswords no
|
||||
|
||||
ChallengeResponseAuthentication no
|
||||
|
||||
UsePAM yes
|
||||
|
||||
AllowAgentForwarding no
|
||||
AllowTcpForwarding no
|
||||
X11Forwarding no
|
||||
PrintMotd no
|
||||
PrintLastLog no
|
||||
ClientAliveInterval 300
|
||||
ClientAliveCountMax 1
|
||||
|
||||
AcceptEnv LANG LC_*
|
||||
|
||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
Loading…
Reference in a new issue