Bandit Level 13 → Level 14

List the files in the home directory, and read the contains the ssh key:

ls
cat file

So we cannot only authenticate with SSH via password, but also we can use RSA keys.

Save this file into our Kali machine:

vim id_rsa

Vim is file editor.

ls -la

We need to change the permissions in order to authenticate with SSH:

chmod 600 id_rsa
ls -la
-rw-------

Now it is only readable and writable by the owner.

Connect to the bandit server with the user bandit14 without specifying any password just the id_rsa:

ssh <User>@<IP> -p <Port> -i <RSAFile>
cat /etc/bandit_pass/bandit14

Here is the password.

Last updated