Level Goal
The password for the next level is stored in /etc/bandit_pass/bandit14 and can only be read by user bandit14. For this level, you don’t get the next password, but you get a private SSH key that can be used to log into the next level. Note: localhost is a hostname that refers to the machine you are working on

Walkthrough
Okaay this should be easy, lets find the sshkey.
ls

there is a file named sshkey.private in our home directory. Lets cat this file and save the key to our windows desktop and name it bandit14t.txt and use this file to connect to the bandit labs. We need to use the -i option and give the path to this saved key.
ssh bandit14@bandit.labs.overthewire.org

I get an error about permissions, let me set those right so only my user has access to the file and try again.

We are in. Lets cat the contents of /etc/bandit_pass/bandit14
cat /etc/bandit_pass/bandit14

There is the password: 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e

Leave a Reply

Your email address will not be published. Required fields are marked *