Bandit Level 18 → Level 19
Level Goal
The password for the next level is stored in a file readme in the homedirectory. Unfortunately, someone has modified .bashrc to log you out when you log in with SSH.
Level Answer
1. ssh [-p port] [user@]hostname [command]
- [-p port] Port to connect to on the remote host.
$ ssh -p 2220 bandit18@bandit.labs.overthewire.org cat readme
IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x
2. ssh [-p port] [user@]hostname
- [-p port] Port to connect to on the remote host.
$ ssh -p 2220 bandit19@bandit.labs.overthewire.org
Level Password
IueksS7Ubh8G3DCwVzrTd8rAVOwq3M5x