DEV Community

Amanda Igwe
Amanda Igwe

Posted on

OverTheWire: Bandit Level 2

Using ssh, ls, cat, cd on Command Line

Things to do:

  1. ssh into bandit1 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)
  2. port 2220
  3. username bandit1
  4. password ZjLjTmM6FvvyRnrb2rfNWOZOTa6ip5If
  5. Use ls to find -
  6. Now you cannot use cat - to open the file because it will return an error. use cat ./- instead and copy the new password
  7. ssh into bandit2
  8. enter the new password copied

Remember to save these passwords in a note app for future references

ls 
cat ./-

copy the password 

exit (to logout from bandit1)

#ssh into bandit2 using the password we copied from - as our new password 

ssh bandit2@bandit.labs.overthewire.org -p 2220

enter new password - 263JGJPfgU6LtdEvgfWU1XP5yac29mFx

Enter fullscreen mode Exit fullscreen mode

b02

b002

b0002

You have successfully logged in and completed bandit level 2!!

See you in level 3!

Top comments (0)