Login
SSH: ssh [email protected] -p 2220
Challenge URL: https://overthewire.org/wargames/bandit/bandit14.html
Task
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 do not get the next password, but you get a private SSH key that can be used to log into the next level.
Solution
Let's see the files present:
bandit13@bandit:~$ ls
HINT sshkey.privateThe private key is present in the home directory. Copy the file to your system and change its permissions to 700 using chmod.
Use it to login as bandit14 using the -i flag which is used to specify the private key:
chmod 700 sshkey.private
ssh -p 2220 bandit14@localhost -i sshkey.privateThen get the password of bandit14:
cat /etc/bandit_pass/bandit14Note: The permissions of the private key file should be
700.