Skip to content
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

Add private keys from host #8

Open
attiks opened this issue Aug 26, 2012 · 4 comments
Open

Add private keys from host #8

attiks opened this issue Aug 26, 2012 · 4 comments

Comments

@attiks
Copy link

attiks commented Aug 26, 2012

Is there an easy way to add your own private keys, so we can push code to d.o.?

@manarth
Copy link
Owner

manarth commented Aug 26, 2012

Good question…I'd usually recommend agent-forwarding rather than adding the keys to the box (because I know plenty of people who have simply zipped a box up to copy to someone else's machine, and no-one wants to hand out their private keys), but I can see value in both.

I'll experiment a little to work out:

  • the best way of specifying keys to copy (I know some builds that lift all the dot-files in ~, and the ~/.ssh dir)
  • how to handle agent-forwarding in vagrant ssh

@darthsteven
Copy link
Contributor

Someone mentioned this at Drupalcon Munich, and a good solution, I'll try to remember what it was!

@darthsteven
Copy link
Contributor

I think that this was it: https://github.com/myplanetdigital/ariadne/blob/master/cookbooks-override/ariadne/libraries/helpers.rb

But it looks like vagrant has baked in support for ssh agent-forwarding: http://vagrantup.com/v1/docs/config/ssh/forward_agent.html

@darthsteven
Copy link
Contributor

Indeed the option in Vagrant works, for the vagrant user in the VM, and adding this line to the /etc/sudoers file makes that work for the root (and presumably other users too)

Defaults env_keep = "SSH_AUTH_SOCK"

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

No branches or pull requests

3 participants