pentesting, updated

SSH service checks

Check an SSH service for weak algorithms, outdated software and credential weaknesses.

Goal

Confirm the SSH service is running a current version with strong algorithms, and is not exposed to trivial credential attacks.

How to test

ssh -V -o KexAlgorithms= 10.10.10.5     # force a banner/algorithm negotiation error, reveals version
nmap --script ssh2-enum-algos,ssh-auth-methods -p22 10.10.10.5
ssh-audit 10.10.10.5                     # dedicated algorithm/CVE audit tool
hydra -l root -P rockyou.txt ssh://10.10.10.5   # credential brute force: see [Hydra](/docs/pentest-cheatsheets/tools/exploitation/hydra)

What to look for

Deprecated algorithms (diffie-hellman-group1-sha1, arcfour), a version with a known CVE (e.g. old OpenSSH regreSSHion-class issues), or password auth enabled where key-only was expected.

§ home
~/knubertus/home/
1,1 Top