GeorgeBanu
  • About me
  • Pentesting CheatSheets
    • Information Gathering
    • Ports Enumeration
      • FTP-21
      • SSH-22
      • Telnet-23
      • SMTP - 25,465,587
      • DNS-53
      • NetBIOS, SMB - 139,445
      • SNMP-161
      • MySQL-3306
      • RDP-3389
      • WinRM-5985
    • Web Cheat Sheet
    • Privilege Escalation
      • Linux Enumeration
      • Linux Privesc Techniques
    • Tricks
    • Template
  • TryHackMe Writeups
    • Starter
    • Dreaming
    • ColddBox: Easy
    • Ollie
    • Blog
    • KoTH Hackers
    • Brooklyn Nine Nine
    • Chill Hack
    • Undiscovered
    • Archangel
    • Jason
    • GLITCH
    • VulnNet: Node
    • Road
    • VulnNet:Internal
    • W1seGuy
  • CyberEDU Writeups
    • flag-is-hidden
    • file-crawler
    • reccon
    • this-file-hides-something
    • wifiland
    • old-tickets
    • inodat
    • pattern
    • ultra-crawl
  • eJPT
Powered by GitBook
On this page
  1. Pentesting CheatSheets
  2. Ports Enumeration

SSH-22

  • login

# simple login
ssh username@$IP
# login with rsa key
chmod 600 id_rsa
ssh username@$IP -i id_rsa
  • simple scan

nmap -sV $IP -p 22
# weak keys
nmap $IP--script ssh-hostkey --script-args ssh_hostkey=full -oN recon/nmap.ssh_weak_keys -p 22
  • brute force

hydra -l username -P ~/Documents/rockyou.txt ssh://$IP

ncrack -p 22 -u username -P wl.txt $IP
PreviousFTP-21NextTelnet-23

Last updated 1 year ago