DEV Community

B Mithilesh
B Mithilesh

Posted on

OverTheWire: Bandit - Level 0

OverTheWire: Bandit - Level 0

Level Goal

The goal of this level is to log into the game using SSH. Once logged in, go to the Level 1 page to find out how to beat Level 1.


Connection Details

  • Username: bandit0
  • Password: bandit0
  • Hostname: bandit.labs.overthewire.org
  • Port: 2220

Commands You May Need

  • ssh – OpenSSH remote login client

What is SSH?

SSH (Secure Shell) is a cryptographic network protocol for operating network services securely over an unsecured network. It’s commonly used to remotely log into machines, transfer files, and execute commands securely.


Solution Steps

  1. Open Terminal

    • On Windows, use PowerShell or Command Prompt.
    • On Linux/macOS, use the built-in terminal.
  2. Execute SSH Command:

   ssh bandit0@bandit.labs.overthewire.org -p 2220
Enter fullscreen mode Exit fullscreen mode
  1. Fingerprint Prompt: If prompted to accept the server's fingerprint, type:
   yes
Enter fullscreen mode Exit fullscreen mode
  1. Password Prompt: Enter the password:
   bandit0
Enter fullscreen mode Exit fullscreen mode
  1. Successful Login: You should see a banner like:
   This is an OverTheWire game server. More information on http://www.overthewire.org/wargames
Enter fullscreen mode Exit fullscreen mode
  1. To Exit SSH: Type exit or use Ctrl + D.

Helpful Tips

  • Ensure your internet connection is stable before connecting.
  • If the connection hangs, try re-running the SSH command.
  • Double-check the port number -p 2220 — it's not the default SSH port.

Next Step

Once you’ve successfully logged in, proceed to Bandit Level 1 to continue.

Top comments (0)