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

437 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 answers

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