Fully functionnal challenge
This commit is contained in:
33
debian-ssh/sshd_config
Normal file
33
debian-ssh/sshd_config
Normal file
@ -0,0 +1,33 @@
|
||||
### SSH configuration file ###
|
||||
|
||||
# General
|
||||
Port 22
|
||||
Protocol 2
|
||||
AcceptEnv LANG LC_*
|
||||
Banner /etc/banner
|
||||
|
||||
# Allow users
|
||||
AllowUsers puppet-master
|
||||
|
||||
# Authentification
|
||||
PermitRootLogin no
|
||||
PubkeyAuthentication yes
|
||||
StrictModes yes
|
||||
PermitEmptyPasswords no
|
||||
LoginGraceTime 20s
|
||||
MaxAuthTries 5
|
||||
MaxStartups 100
|
||||
AuthenticationMethods publickey
|
||||
|
||||
#Forwarding
|
||||
AllowTcpForwarding no
|
||||
X11Forwarding no
|
||||
AllowStreamLocalForwarding no
|
||||
GatewayPorts no
|
||||
PermitTunnel no
|
||||
|
||||
# Desactivate other auth methodes
|
||||
PasswordAuthentication no
|
||||
KerberosAuthentication no
|
||||
GSSAPIAuthentication no
|
||||
usePam no
|
Reference in New Issue
Block a user