How I Fixed 'Warning: Authentication Failure. Retrying' With Vagrant

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 :

1
2
3
4
5
6
7
8
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
...

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

1
# 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.

Comments