Goal
The password is in a readme file in the home directory.
But someone modified .bashrc to log you out when you SSH in.
Hints
- SSH can run a single command without starting an interactive shell.
- If you can run
cat readmewithout a full login shell,.bashrcwon’t get a chance to kick you out.
Solution (click to reveal)
Run the command directly via SSH:
ssh bandit19@bandit.labs.overthewire.org -p 2220 "cat readme"
The output is the password for Level 20.
Notes
- You can use this trick anytime a login shell is “hostile”.