3

If I try to connect to a certain server with

ssh example.com

ssh aborts with Too many authentication failures because I have more than 5 ssh keys in my .ssh folder and it loops through all those keys with none of them fitting (detailed description here)

How can I tell ssh not to look in my keys and just give me the password prompt?

6
  • Seems you need: serverfault.com/questions/130346/… Commented Aug 11, 2014 at 12:21
  • @rub77. The answer has already been given. You can add your solution and mark it as answer. Glad you solved it. Commented Aug 11, 2014 at 12:30
  • I usually use a config file that specifies which key belongs to which server and this negates the need for looping through the keys. Commented Aug 11, 2014 at 12:51
  • @DavidKohen can you add a description how to do that here please? ssh always too many authentication failures Commented Aug 11, 2014 at 12:54
  • So this is a duplicate question, please delete this one (since you are asking us to answer in the other question), though I think this is a more fitting site to post this in. Commented Aug 11, 2014 at 13:14

1 Answer 1

3

The following method works:

ssh -o PreferredAuthentications=password host.example.org
1

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.