DEV Community

Hiromi
Hiromi

Posted on

Overthewire - Level 13

The level 13, is not that intuitive as thought.

We are going to use sshkeys, so below has a small explanation about this concept.

SSH Keys:

  • They are security way to authenticte with remote servers, replacing the need for passwords.
  • They can be public (sharable) or private.
  • These keys are used to connect local machine to remote servers, then the machine prove your identity using SSH Key to access it. Once authenticated, all data is encrypted and sent through the secure tunel created between machines.

Given this concept in mind, we need to connect the SSH Server with the sshkey.

1) Connect to level 13, then ls to find all files in this directory.
2) Once found the key, we need to connect the SSH Server with it:

ssh -i [file] -p 2220 [SSH Server]@localhost

ssh = secure shell command
-i [file] = specific file of interest
-p 2220 = port of interest
[SSH Server] = connection to the local machine

3) This will automatic connect us to the level 14, once inside of level 14, we need to cat the location of the path '/etc/bandit_pass/bandit14' to find it password.

I hope this helped you :)

Top comments (0)