Diferencia entre revisiones de «One-liners»

De Wiki Técnico Rioja. Administra tus sistemas.
Sin resumen de edición
Línea 2: Línea 2:
=== Apache===
=== Apache===


===Postfix ( envios )===
===Postfix ===
Intentos fallidos de login
<pre>journalctl --since "4 hour ago" | grep "SASL LOGIN authentication failed:" |  awk '{print $7}'| cut -d [ -f2 | cut -d ] -f1 | sort -n | uniq -c | sort -n | awk '{print $2}'</pre>


===Mysql===
===Mysql===

Revisión del 21:21 29 ene 2025

Apache

Postfix

Intentos fallidos de login

journalctl --since "4 hour ago" | grep "SASL LOGIN authentication failed:" |  awk '{print $7}'| cut -d [ -f2 | cut -d ] -f1 | sort -n | uniq -c | sort -n | awk '{print $2}'

Mysql

Autenticaciones

Ver intentos de login a tu servidor via SSH:

journalctl --since "24 hour ago" | grep -i "Failed password for invalid user" | awk '{print $13}' | sort -n | uniq  

o

 journalctl --since "24 hour ago" | grep -i "Failed password for root " | awk '{print $11}' | sort -n | uniq