Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

"Are you sure you want to continue connecting?" prompt blocks my CI runs #245

Open
drnic opened this issue May 10, 2013 · 3 comments
Open

Comments

@drnic
Copy link

drnic commented May 10, 2013

See https://travis-ci.org/drnic/bosh-inception/jobs/7058140#L179

Any thoughts on what we can do in knife-solo to auto-answer this, or have it never asked in the first place?

It seems weird - there have been ssh calls into this VM already; not sure why the "Uploading the kitchen..." stage results in this ssh check.

Ideas?

@matschaffer
Copy link
Owner

Kitchen upload shells out to rsync (which calls ssh). That's likely where the prompt is coming from. It's interesting that I don't tend to run into this in our own integration tests though. I may have had host key checking turned off for EC2 globally.

I'll try to dig a bit. @tmatilai might also have some thoughts.

@tmatilai
Copy link
Collaborator

Ah yeah, I have also configured ssh to not verify EC2 hosts. Net::SSH has that off by default. I guess we should make it configurable for knife-solo and then pass the same setting to both Net::SSH and rsync. Or at least disable the check now from rsync?

@drnic As a workaround, you should be able to make an SSH config file in your repo with something like this:

Host *.compute*.amazonaws.com # or just `*`
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null

...and then pass that with --ssh-config-file/-F to knife-solo commands.

@drnic
Copy link
Author

drnic commented May 10, 2013

Thank you very mcuh @tmatilai & @matschaffer for the ideas!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants