What are the key SSH log files on Linux and how can I delete or modify them to cover my tracks?
Key SSH log files include `/var/log/auth.log` (successful authentications), `/var/log/btmp` (failed attempts), `/var/log/wtmp` (login history), `/var/run/utmp` (current sessions), and `~/.bash_history` (command history). You can use `sed` to replace IPs or delete specific lines, or tools like `logtamper` to modify or clear logs for specific users. For example, `sed -i '/pattern/d' /var/log/auth.log` removes matching lines. For more advanced log manipulation, see Penetration Techniques - Deletion and Bypass of Windows Logs which covers similar techniques on Windows.
SSH logslog deletionlog tamperingsedlogtamper