../
OverTheWire - Bandit: Level 14 to Level 15
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
The private SSH key is right in the front of us at ~/sshkey.private
. Let’s use it to connect to the current machine as user bandit14
1 $ ssh -p 2220 -i ./sshkey.private bandit14@localhost
2 $ whoami
3 bandit14
This works, so fetch the password and go on.
1 $ cat /etc/bandit_pass/bandit14
2 fGrHPx402xGC7U7rXKDaxiWFTOiF0ENq