Bandit Level 30 → Level 31

Level Goal

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

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

Commands you may need to solve this level

git

bandit30@bandit:~$ mkdir /tmp/jcruzrepos4
bandit30@bandit:~$ cd /tmp/jcruzrepos4
bandit30@bandit:/tmp/jcruzrepos4$ git clone ssh://bandit30-git@localhost/home/bandit30-git/repo
Cloning into 'repo'...
Could not create directory '/home/bandit30/.ssh'.
The authenticity of host 'localhost (127.0.0.1)' 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/bandit30/.ssh/known_hosts).
This is a OverTheWire game server. More information on http://www.overthewire.org/wargames

bandit30-git@localhost's password:
Permission denied, please try again.
bandit30-git@localhost's password:
Permission denied, please try again.
bandit30-git@localhost's password:
remote: Counting objects: 4, done.
remote: Total 4 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (4/4), done.

bandit30@bandit:/tmp/jcruzrepos4$ cd repo
bandit30@bandit:/tmp/jcruzrepos4/repo$ ls
README.md
bandit30@bandit:/tmp/jcruzrepos4/repo$ cat README.md
just an epmty file... muahaha
bandit30@bandit:/tmp/jcruzrepos4/repo$ git log
commit 3aa4c239f729b07deb99a52f125893e162daac9e
Author: Ben Dover <noone@overthewire.org>
Date:   Tue Oct 16 14:00:44 2018 +0200

    initial commit of README.md

bandit30@bandit:/tmp/jcruzrepos4/repo$ git tag
secret
bandit30@bandit:/tmp/jcruzrepos4/repo$ cat secret
cat: secret: No such file or directory
bandit30@bandit:/tmp/jcruzrepos4/repo$ git show secret
47e603bb428404d265f59c42920d81e5