Menú alternativo
Alternar el menú de preferencias
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Guía de hardening para servidores»

De TechShareRoom wiki
Sin resumen de edición
Línea 16: Línea 16:
systemctl daemon-reload
systemctl daemon-reload
systemctl restart ssh.socket
systemctl restart ssh.socket
systemctl restart sshd
</syntaxhighlight>
</syntaxhighlight>

Revisión del 12:45 27 dic 2025

Cambiar puerto ssh

Configuración recomendada

sudo nano /etc/ssh/sshd_config
Port XX #any different to 22, IMPORTANT open port before!
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
MaxAuthTries 3
LoginGraceTime 30
#Refrescar 
systemctl daemon-reload
systemctl restart ssh.socket