Log SSH
Bismillah
q> Menampilkan log SSH
[sourcecode language="bash"]grep "sshd" /var/log/auth.log[/sourcecode]
q> Menampilkan log SSH per tanggal tertentu, misal log untuk 4 April
[sourcecode language="bash"]grep "sshd" /var/log/auth.log | grep "Apr 4"[/sourcecode]
q> Menyimpan log ke dalam file txt
[sourcecode language="bash"]grep "sshd" /var/log/auth.log | grep "Apr 4" > logssh_4_April.txt[/sourcecode]
Alhamdulillah
No comments:
Post a Comment