Bandit Level 27 → Level 28

Level Goal

There is a git repository at ssh://bandit27-git@localhost/home/bandit27-git/repo. The password for the user bandit27-git is the same as for the user bandit27.

Clone the repository and find the password for the next level.

Commands you may need to solve this level


bandit27@bandit:~$ mkdir /tmp/jcruzrepos
bandit27@bandit:~$ cd /tmp/jcruzrepos
bandit27@bandit:/tmp/jcruzrepos$ git clone ssh://bandit27-git@localhost/home/bandit27-git/repo
Cloning into 'repo'...
Could not create directory '/home/bandit27/.ssh'.
The authenticity of host 'localhost (' can't be established.
ECDSA key fingerprint is SHA256:98UL0ZWr85496EtCRkKlo20X3OPnyPSB5tB5RPbhczc.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/bandit27/.ssh/known_hosts).
This is a OverTheWire game server. More information on
bandit27-git@localhost's password:
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
bandit27@bandit:/tmp/jcruzrepos$ ls
bandit27@bandit:/tmp/jcruzrepos$ cd repo
bandit27@bandit:/tmp/jcruzrepos/repo$ ls
bandit27@bandit:/tmp/jcruzrepos/repo$ cat readme
cat: readme: No such file or directory
bandit27@bandit:/tmp/jcruzrepos/repo$ cat README
The password to the next level is: 0ef186ac70e04ea33b4c1853d2526fa2