Bandit 0 → 1: getting a foothold
The first Bandit level isn’t really a puzzle — it’s a handshake. It checks that you can SSH into a box and read a file. That’s it. But it’s worth writing up cleanly, because every level after this one starts the exact same way: connect, look around, find the password for the next level.
the goal
The password for the next level is stored in a file called
readmelocated in the home directory. Use this password to log into level 1.
Connection details for Bandit are always the same host, on a non-standard port:
- host:
bandit.labs.overthewire.org - port:
2220 - user for this level:
bandit0 - password for this level:
bandit0
getting in
SSH takes the user with -p for the port. Note the port flag is capital -p
for SSH (lowercase -p means something else — a classic first trip-up):
ssh bandit0@bandit.labs.overthewire.org -p 2220
It’ll ask for a password. Type bandit0 (nothing shows as you type — that’s
normal, not a frozen terminal).
looking around
Once you’re in, see what’s in the home directory:
bandit0@bandit:~$ ls
readme
There it is. Read it:
bandit0@bandit:~$ cat readme
That prints the password for level 1. Copy it somewhere — you’ll need it for the
next connection (ssh bandit1@bandit.labs.overthewire.org -p 2220).
the takeaway
Nothing here is hard, but two habits start now and never stop:
lsthencatis the whole game at the start of every level — orient, then read.- Keep a password log. Every level hands you the next password once. Lose it and you’re re-solving the level to get back in. A plain text file, one line per level, is enough.
On to 1 → 2, where the filename stops cooperating.