# Bandit level 0

First level of Getting over the wire is bandit level 0, the task is simple which is to connect to bandit0 via SSH.

First you open your terminal (ctrl+alt+t) for most Linux distros, then you connect via ssh, to connect using SSH, you have to use a port number, a username and a domain.

```shell
ssh -p [port_number] [username]@[domain]
```

In this case, the port number in Getting Over The Wire Bandit 0:

```shell
-p 2220
```

Username and the domain name:

```shell
bandit0@bandit.labs.overthewire.org
```

![](https://cdn.hashnode.com/uploads/covers/6a91d30adc83bf7a5cfb1d9f/12f5751d-43bb-4309-9d79-0f7aa285d97c.png align="left")

After connecting successfully to the domain, you will have to enter a password so you can enter the wargames in this case the password to the domain is **bandit0**, Then we will have to use two commands to get the password for the next level, a successful connection to the wargames the output should look like this:

![](https://cdn.hashnode.com/uploads/covers/6a91d30adc83bf7a5cfb1d9f/44c828b8-8307-416f-b148-62ed49b868d4.png align="left")

```shell
ls
```

ls, a command which shows you the directories and files in the system, once you type it, you would find a file named readme, you can open it by using the cat command, the cat command (concatenate) is used to view, create or combine file contents directly from the terminal.

```shell
cat [filename]
```

you should be able to read it and find the password to go the next levels, make sure to save passwords to every level you pass otherwise you will lose and have to start all over again!

Example of the commands:

Input:

```shell
ls
```

Output:

```plaintext
readme
```

Input:

```shell
cat readme
```

If you type the cat command make sure to include the format type if it's there, for example:

```shell
cat readme.txt
```

Output:

```plaintext
Password is: **************
```

Summary:

After following this guide, you should get the password which would get you to level 1 > level 2, Make sure to save every password for every level you pass otherwise you gonna start all over and you might lose track of what you did!
