Vagrant insecure key detected

Posted: 2016-11-17 22:26:51 by Alasdair Keyes

Direct Link | RSS feed


I recently downloaded the Ansible Tower free trial.

They have an easy to use Vagrant setup, however when running it on my Linux Mint box, I received the following error

default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...

If the box is just a trial and security is not of prime importance, you can add the following to the Vagrantfile to resolve it.

config.ssh.insert_key = false

And you it should build fine and allow you access with a vagrant ssh


If you found this useful, please feel free to donate via bitcoin to 1NT2ErDzLDBPB8CDLk6j1qUdT6FmxkMmNz

© Alasdair Keyes

IT Consultancy Services

I'm now available for IT consultancy and software development services - Cloudee LTD.



Happy user of Digital Ocean (Affiliate link)


Version:master-604d31a82e


Validate HTML 5