Originally published byDev.to
Using ssh, ls, cat, cd on Command Line
Things to do: by now you should have gotten used to logging into the next level. Simply change the username and use the password you got from the previous task
- ssh into bandit2 host bandit.labs.overthewire.org (incase you are not logged in. But if you are already logged in, skip this step and go to number 5)
- port 2220
- username bandit1
- password 263JGJPfgU6LtdEvgfWU1XP5yac29mFx
- Use ls to find --spaces in this filename--
- Now you cannot use cat -- to open the file because it will return an error. Use the syntax below instead and copy the new password
- ssh into bandit3
- enter the new password copied
Remember to save these passwords in a note app for future references
bandit2@bandit:~$ ls
--spaces in this filename--
bandit2@bandit:~$ cat spaces\ in\ this\ filename # THIS CAN WORK FOR YOU.
cat: 'spaces in this filename': No such file or directory
#BUT IF YOU GOT AN ERROR USE THIS
bandit2@bandit:~$ cat ./--spaces\ in\ this\ filename--
copy the password
exit (to logout from bandit2)
#ssh into bandit2 using the password we copied from - as our new password
ssh [email protected] -p 2220
enter new password - MNk8KNH3Usiio41PRUEoDFPqfxLPlSmx
You have successfully logged in and completed bandit level 3!!
See you in level 4!
🇺🇸
More news from United StatesUnited States
NORTH AMERICA
Related News
How Braze’s CTO is rethinking engineering for the agentic area
11h ago
Amazon Employees Are 'Tokenmaxxing' Due To Pressure To Use AI Tools
22h ago
KDE Receives $1.4 Million Investment From Sovereign Tech Fund
2h ago
Instagram’s new ‘Instants’ feature combines elements from Snapchat and BeReal
2h ago
Six Claude Code Skills That Close the AI Agent Feedback Loop
2h ago



