githubEdit

Secure Shell (SSH)

Port: 22

1) Authenticate via SSH

ssh USER@IP

2) Authenticate using private key

Give appropriate permissions for the key

chmod 600 id_rsa

Authenticate

ssh USER@IP -i id_rsa

3) Brute force credentials

Brute force

hydra -l USER -P /usr/share/wordlists/rockyou.txt IP -t 4 ssh

Password Spray

hydra -L USERLIST -p password IP -t 4 ssh

Default credentials

hydra -f -V -C /usr/share/seclists/Passwords/Default-Credentials/ssh-betterdefaultpasslist.txt IP ssh

4) Convert PuTTY key to OpenSSH format

5) Crack SSH Private keys

6) Run commands upon connection

7) Bypass Host Key Checking

8) Force a different cipher

9) Force an older SSH version

10) Reverse shell with weak cryptographic algorithms

Last updated