Skip to content
Discussion options

You must be logged in to vote

I'd begin with read-only checks to establish what is currently configured and running.

First, review successful and failed authentication events:

sudo journalctl -u ssh --since "24 hours ago"

Then inspect user accounts and authorized SSH keys:

getent passwd
sudo find /home /root -name authorized_keys -type f

Review listening network services:

sudo ss -lntup

I'd also check enabled services and scheduled tasks for unfamiliar entries, compare the findings with a known-good baseline, and investigate any unexpected changes.

If unauthorized access is suspected, I'd preserve logs, isolate the server when appropriate, rotate potentially compromised credentials from a trusted system, and investiga…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vedantghode32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants