Home > Back-end >  Bandit War Game, correct command but permission denied?
Bandit War Game, correct command but permission denied?

Time:10-19

I remember playing the Bandit War game in uni, so I felt like giving it another shot this weekend to refresh some knowledge.

Aaaand im Stuck on level0. But I am quite certain this is the correct command, so I am wondering if I am missing something or there can be some kind of configuration issue?

Level 0 gives you the address, the username, the port and the password. So you do an old-school login without any files etc.

This is what I went for:

ssh [email protected] -p 2220

Also tried

ssh bandit.labs.overthewire.org -p 2220 -l bandit0

but that should be the same.
I would expect to be prompted for the password, but instead I get

This is a OverTheWire game server. More information on http://www.overthewire.org/wargames

[email protected]: Permission denied (publickey,password).

CodePudding user response:

Check your ssh-config in case you are stuck like me.
I had these lines among it

Host *
  PreferredAuthentications publickey

this is why it did not work. Add the wargame server and switch to the preferred method of authentication for a given level.

  • Related