Test kitchen keeps waiting for ssh after creating instance for kitchen google

456 Views Asked by At

The username is setup properly in the metadata and able to login to the box using the key.

But for some reason once the kitchen completes the instance creation, it keeps waiting for ssh and never is able to login.

1

There are 1 best solutions below

1
On BEST ANSWER

The problem popped out when executed the kitchen create command in debug mode. The key used was different than my id_rsa which is default.

Hence had to make sure my ssh-agent was running and that they key was added to it.

Once the key was added to the ssh-agent, it logged right in.