Bandit 13 → 14
Goal: use the private key in the home directory to log in as bandit14 and read its stored password.
Approach
Section titled “Approach”There is no password here, only a private key. Use it to authenticate as bandit14, then read that user’s password from the system store.
bandit13@bandit:~$ lssshkey.privatebandit13@bandit:~$ ssh -i sshkey.private bandit14@bandit.labs.overthewire.org -p 2220bandit14@bandit:~$ cat /etc/bandit_pass/bandit14The password you are looking for is: <password>Password
MU4VWeTyJk8ROof1qqmcBPaLh7lDCPvSWhy it works
Section titled “Why it works”Public-key authentication proves identity by signing a server challenge with the private key, so no secret crosses the wire. The server only needs the matching public key in authorized_keys. Each level’s own password also lives at /etc/bandit_pass/banditN, readable solely by that user, so a shell as bandit14 can read it directly.