查看连接失败次数

cat /var/log/secure | awk '/Failed/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}'

查看连接成功次数

cat /var/log/secure | awk '/Accepted/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}'

相关文章:

  • 2021-12-24
  • 2021-09-29
  • 2022-01-07
  • 2022-01-01
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-06-25
  • 2021-07-23
  • 2022-12-23
  • 2021-12-12
  • 2021-07-06
相关资源
相似解决方案