Level goal

The password for the next level is stored in a file called spaces in this filename located in the home directory.

Login

ssh bandit2@bandit.labs.overthewire.org -p 2220
263JGJPfgU6LtdEvgfWU1XP5yac29mFx

Doc

ls (1)               - list directory contents
cat (1)              - concatenate files and print on the standard output

Solution

Simply use " " on the file in order to parse the parameter as a string, then get the result using cat.

bandit2@bandit:~$ ls
spaces in this filename
bandit2@bandit:~$ cat "spaces in this filename"
MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx