Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
debian_ssh_hardening [2024/08/22 14:42] estebanmongedebian_ssh_hardening [2024/08/29 22:55] (current) estebanmonge
Line 8: Line 8:
 echo 'AllowAgentForwarding no' >> /etc/ssh/sshd_config echo 'AllowAgentForwarding no' >> /etc/ssh/sshd_config
 echo 'AllowTcpForwarding no' >> /etc/ssh/sshd_config echo 'AllowTcpForwarding no' >> /etc/ssh/sshd_config
 +echo 'MaxAuthTries 3' >> /etc/ssh/sshd_config
 +echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
 +echo 'PermitRootLogin no' >> /etc/ssh/sshd_config
 +echo 'ClientAliveCountMax 0' >> /etc/ssh/sshd_config
 +echo 'LoginGraceTime 60' >> /etc/ssh/sshd_config
 +echo 'MaxStartups 10:30:60' >> /etc/ssh/sshd_config
 </code> </code>