Additional sshd hardening
This commit is contained in:
@ -26,6 +26,7 @@ Port 69
|
|||||||
Ciphers aes256-gcm@openssh.com,aes256-ctr
|
Ciphers aes256-gcm@openssh.com,aes256-ctr
|
||||||
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521
|
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521
|
||||||
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-512
|
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-512
|
||||||
|
Protocol 2
|
||||||
#HostKey /etc/ssh/ssh_host_rsa_key
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
||||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||||
#HostKey /etc/ssh/ssh_host_ed25519_key
|
#HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
@ -45,8 +46,9 @@ MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-512
|
|||||||
# / __ / // / __/ _ \/ -_) _ \/ __/ / __/ _ `/ __/ / _ \/ _ \
|
# / __ / // / __/ _ \/ -_) _ \/ __/ / __/ _ `/ __/ / _ \/ _ \
|
||||||
#/_/ |_\_,_/\__/_//_/\__/_//_/\__/_/\__/\_,_/\__/_/\___/_//_/
|
#/_/ |_\_,_/\__/_//_/\__/_//_/\__/_/\__/\_,_/\__/_/\___/_//_/
|
||||||
#
|
#
|
||||||
|
AllowUsers coby
|
||||||
|
AllowGroups coby
|
||||||
#LoginGraceTime 2m
|
#LoginGraceTime 2m
|
||||||
#PermitRootLogin prohibit-password
|
|
||||||
PermitRootLogin no
|
PermitRootLogin no
|
||||||
#StrictModes yes
|
#StrictModes yes
|
||||||
#MaxAuthTries 6
|
#MaxAuthTries 6
|
||||||
@ -126,8 +128,8 @@ PrintMotd no
|
|||||||
#TCPKeepAlive yes
|
#TCPKeepAlive yes
|
||||||
PermitUserEnvironment no
|
PermitUserEnvironment no
|
||||||
#Compression delayed
|
#Compression delayed
|
||||||
#ClientAliveInterval 0
|
ClientAliveInterval 600
|
||||||
#ClientAliveCountMax 3
|
ClientAliveCountMax 3
|
||||||
#UseDNS no
|
#UseDNS no
|
||||||
#PidFile /var/run/sshd.pid
|
#PidFile /var/run/sshd.pid
|
||||||
#MaxStartups 10:30:100
|
#MaxStartups 10:30:100
|
||||||
@ -135,13 +137,13 @@ PermitUserEnvironment no
|
|||||||
#ChrootDirectory none
|
#ChrootDirectory none
|
||||||
#VersionAddendum none
|
#VersionAddendum none
|
||||||
|
|
||||||
# no default banner path
|
# No default banner path
|
||||||
#Banner none
|
#Banner none
|
||||||
|
|
||||||
# Allow client to pass locale environment variables
|
# Allow client to pass locale environment variables
|
||||||
AcceptEnv LANG LC_*
|
AcceptEnv LANG LC_*
|
||||||
|
|
||||||
# override default of no subsystems
|
# Override default of no subsystems
|
||||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
|
|
||||||
# Example of overriding settings on a per-user basis
|
# Example of overriding settings on a per-user basis
|
||||||
|
Reference in New Issue
Block a user