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
Okaay this should be easy, lets find the sshkey.
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.
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
There is the password: 4wcYUJFw0k0XLShlDzztnTBHiqxU3b3e