OverTheWire

Bandit Level 0

Level Goal
The goal of this level is for you to log into the game using SSH. The host to which you need to connect is bandit.labs.overthewire.org, on port 2220. The username is bandit0 and the password is bandit0. Once logged in, go to the Level 1 page to find out how to beat Level 1.

For this level we need to connect to Over The Wire’s Bandit server via SSH.

SSH, also known as Secure Shell is a network protocol that enables one computer to securely connect to another computer over an unsecure network like the internet. SSH encrypts data to maintain a secure communication. This is implemented using the client-server model where one computer is called the SSH Client and the other acts as the SSH Server.

The connection is established when the SSH Client makes contact with the SSH Server to begin the initial transmission control protocol (TCP) handshake, and uses asymmetric encryption to negotiate the secure connection and protect future communication. It verifies the server’s identity, and provides credentials for authentication. Finally symmetric encryption is used for all further communications.

That being said, how do we establish the connection to the server? Using the following command:

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

First we type the base command SSH. Then we specify the username and host we are connecting to, bandit0@bandit.labs.overthewire.org. Finally we specify the port by using the “p” flag and the port 2220.

After hitting enter, we will be prompted to enter the password, in this level it is simply bandit0.