Enumeration
Banner Grabbing
ssh-audit (Configuration Audit)
Nmap Scripts
Public Key Scan
Brute Force
Username Enumeration
Password Brute Force
Private Key Brute Force
Debian Weak PRNG Keys
Some Debian systems have known weak random seed generating predictable keys:Kerberos / GSSAPI SSO
If the SSH server supports GSSAPI (e.g., Windows OpenSSH on a domain controller):SSH MitM Attack
Requires being on the local network:- Divert victim’s traffic (ARP spoofing, DNS spoofing)
- SSH-MITM acts as proxy, capturing credentials
- Forwards commands to real server and relays responses
SFTP Misconfigurations
Command Execution Bypass
Users with non-interactive shells (/usr/bin/nologin) can sometimes execute commands:
SFTP Secure Configuration
SFTP Symlink Attack
SFTP Tunneling
Critical Vulnerabilities
CVE-2024-6387 – regreSSHion
CVE-2024-3094 – XZ Utils Backdoor
XZ Utils 5.6.0 and 5.6.1 shipped backdoored tarballs that hookRSA_public_decrypt in sshd for pre-auth RCE:
CVE-2025-32433 – Erlang/OTP Pre-Auth RCE
libssh CVE-2018-10933
Server-side libssh 0.6–0.8 acceptsSSH_MSG_USERAUTH_SUCCESS from client without authentication.