-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH prompting password for an instance inside VPC #129
Comments
we upgraded recently from 0.8.0 and are also seeing this |
Hey @nirmaljss and @koertkuipers - we recently merged test-kitchen/test-kitchen#704 into core TK which disables password auth if an ssh_key is configured. Can you try using TK master locally and seeing if this fixes your issue (or at least exposes why the key is not being accepted in the first place)? You can add a Gemfile to your cookbook with the following contents: source 'https://rubygems.org'
gem "test-kitchen", git: "https://github.com/test-kitchen/test-kitchen"
gem "kitchen-ec2", "~> 0.9.2"
gem "berkshelf" The run |
@tyler-ball You Sir made my day!!! It works like a charm with the TK master. This issue can be closed and I hope TK cuts a release soon. Thank you. |
Great! I'll leave this open so we can track the following TODOs:
|
@nirmaljss Kitchen-ec2 0.10.0 (released yesterday) should include this change. I'm going to go make sure the ChefDK build has the latest Test Kitchen now, so I'm going to close this bug. Thanks for the report! |
I am not sure this is fixed. $ chef -v *** LOCAL GEMS *** kitchen-ec2 (0.10.0) driver: transport: provisioner: Still fails. I am able to log in with ssh -i .... I have tried just about every combination and permutation to get this working - the instance boots, but you can't log in automagically. Is there a way to force the the auth by passwd off? I should add that it times out: Waiting for SSH service on 172.31.51.50:22, retrying in 3 seconds |
Hmm...update - works with Ubuntu as the image, not CentOS. Changes: AMI to front page Ubuntu image No other changes. centos-kitchen.yml driver: transport: provisioner: platforms:
suites:
ubuntu-kitchen.yml driver: transport: provisioner: platforms:
suites:
I can only conclude then that there is a problem with the AMI? for the CentOS 6.4 image on Amazon (and you have to hunt for it anyway). Opinions? |
I am trying to spin up an ec2 instance inside a VPC on a private subnet. Every time I run
kitchen test
, I am able to spin up the instance with the right security groups and in the right subnet range. When test-kitchen is trying to SSH on to the instance, it is asking for password. However, when I manually try to ssh (ssh <private_ip> -i <path_to_ssh_key> -l ubuntu
) on to the machine I succeed without being prompted for a password.The following is my .kitchen.yml file
I have the aws credentials in place on the environment variables. The following is my output.
I tried several times and haven't had any luck on bypassing the password to allow test-kitchen to ssh on to the instance. The following is my
kitchen diagnose
output.Any help would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: