How I fixed ‘Warning: Authentication failure. Retrying’ with Vagrant

less than 1 minute read

Lately, I went into an upgrade cycle : Ubuntu, which forced me to upgrade Docker, and then Vagrant … you know the story. Unfortunately, my vagrant config did not want to start anymore with the following error :

Warning: Authentication failure. Retrying
Warning: Authentication failure. Retrying
Warning: Authentication failure. Retrying
Warning: Authentication failure. Retrying
Warning: Authentication failure. Retrying
Warning: Authentication failure. Retrying
Warning: Authentication failure. Retrying
...

A screen with the ssh prompt

I tried to destroy and re-create my box with the same result : it eventually timedout, but the provisions were not executed.

After searching the internet and a lot of experimentation, I managed to make it work by commenting out the following line in my Vagrantfile

# config.ssh.private_key_path = "~/.ssh/id_rsa"

I think I added this a long time ago to be able to push to github from my Vagrantbox, but after trying it, it work with the difference of my having to validate the remote ssh key, that’s not of a big deal.

I usually write about 15 minutes worth of reading per month. I won't transfer your email. No Spam, unsubscribe whenever you want.

As a gift for subscribing, you'll receive an illustrated mini-ebook "How to start a team coding dojo"!

Categories:

Updated:

Leave a comment