Default Port: 22
SSH is the most common remote access protocol on Linux and network infrastructure, and because it’s everywhere, it’s also one of the first things worth checking for weak credentials, reused keys, and version-specific vulnerabilities. Once you’re in, it doubles as one of the best pivoting tools available, port forwarding and tunneling are built in, no extra software needed.
Password Authentication
Standard username and password. Straightforward to brute-force if rate limiting and lockout aren’t configured.
Key-Based Authentication
A private key stands in for a password. Far more resistant to brute-forcing, but a weak passphrase or a leaked key changes that completely.
Connecting
Recon
ssh-audit goes well beyond a version banner, it reports supported algorithms, known weaknesses, and concrete hardening recommendations in one pass:
Username Enumeration
OpenSSH through 7.7 (CVE-2018-15473) has a timing/response difference between valid and invalid usernames during authentication, letting you enumerate valid accounts without ever completing a login.
Brute Forcing
Attacking SSH Keys
If you recover a private key (from a backup, a misconfigured share, or a compromised host) and it’s passphrase-protected, it’s crackable offline just like any other credential.Known Vulnerabilities
Post-Exploitation: Persistence
Post-Exploitation: File Transfer
Quick Reference Tools
Hackviser: SSH
Quick-reference pentesting guide for the SSH service.
HackTricks: SSH
Deeper breakdown of SSH enumeration and exploitation techniques.
ssh-audit
Automated SSH configuration and algorithm auditing.

