Port 22 - SSH
Enumeration
nc -vn <ip> <port> # Banner grabbing
nmap -p22 <ip> -sCV # Default scripts and version scan
nmap -p22 <ip> --script ssh2-enum-algos # Retrieve supported algorythms
nmap -p22 <ip> --script ssh-hostkey --script-args ssh_hostkey=full # Retrieve weak keys
nmap -p22 <ip> --script ssh-auth-methods --script-args="ssh.user=root" # Check authentication methodsBruteforce
hydra -L users.txt -P passwords.txt ssh://<ip> [-s <alternative port>]Last updated