SSH - Port 22
Common usage
ssh -i id_rsa user@victimip
Banner Grabbing
nc -v 10.0.0.5 22
Ncat: Version 7.80 ( https://nmap.org/ncat )
Ncat: Connected to 192.168.1.50:22.
SSH-2.0-OpenSSH_7.4h
Brute Forcing
hydra -l renu -P /usr/share/wordlists/rockyou.txt ssh://192.168.84.230
Notes
Found that if another user has a authorized key set up for another user to access their account usually it can be seen in /.ssh/authorized_keys.
See : https://app.gitbook.com/o/8zAiFgRK6zzhAH9lWN2l/s/fAZp7FYUSvzvoIbLjdkX/~/changes/qTfVkJNHOcRKkez1u9dm/boxes-write-ups/proving-grounds/proving-grounds-practice/moneybox
Enable SSH Server
sudo service ssh start # Enable incoming SSH connections
File Transfers
systemctl start ssh.socket
scp [email protected]:C:/ftp/Infrastructure.pdf .
systemctl stop ssh.socket
Last updated
Was this helpful?