The Goal

Log into the Bandit game server using SSH. The credentials are given outright: host bandit.labs.overthewire.org, port 2220, username and password both bandit0. Once in, find the password for Level 1.

Connecting

$ ssh bandit0@bandit.labs.overthewire.org -p 2220

On the first connection, SSH will ask you to confirm the host fingerprint. Type yes. Enter bandit0 as the password when prompted.

Finding the Password

The Level 1 password is stored in a file called readme in the home directory:

bandit0@bandit:~$ ls
readme
bandit0@bandit:~$ cat readme
[Level 1 password]

Commands Covered

  • ssh username@host -p port, connect to a remote machine via SSH
  • ls, list files in the current directory
  • cat filename, print the contents of a file to the terminal