For the complete documentation index, see llms.txt. This page is also available as Markdown.

SSH Tips

Connect with pem/user/ip

  • This will allow you to stay connected to the CTF (metasploitCtf)

chmod 600 ctf.pem
ssh -i ctf.pem user@54.x.x.x

Root Logins Allowed

  • Found an ssh key, but can you log in with root?

grep PermitRootLogin /etc/sshd_config 
vim root_key 
mod 600 root_key 
ssh -i root_key root@192.168.x.x 

Unable to negotiate

REF: sundayHTB

> ssh sunny@10.129.87.203 -p 22022
Unable to negotiate with 10.129.87.203 port 22022: no matching key exchange method found. 
Their offer: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

> ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 sunny@10.129.87.203 -p 22022
..connect!

keys

  • If you found the ssh_key and the password

  • You can decode it like this:

SSH Konami Code (pivot)

ssh key crack

Last updated