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

id_vagrant may need to be chmod 0400 in order to allow use as an ssh identity file #1

Closed
jbsmith opened this issue Aug 18, 2013 · 2 comments

Comments

@jbsmith
Copy link

jbsmith commented Aug 18, 2013

Please consider setting id_vagrant to mode 0400 in order to facilitate its use as an ssh identity file.

This will prevent failures that resemble the following:

evstack | FAILED => Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-1376859817.42-159871785923233 && chmod a+rx $HOME/.ansible/tmp/ansible-1376859817.42-159871785923233 && echo $HOME/.ansible/tmp/ansible-1376859817.42-159871785923233, exited with result 255

lorin pushed a commit that referenced this issue Aug 19, 2013
@lorin
Copy link
Owner

lorin commented Aug 19, 2013

Unfortunately, I don't think git preserves these permissions, so I can't set them in the repository. I've added to the readme for now.

Alternately, I could use ~/.vagrant.d/insecure_private_key as the path to the key in the ansible hosts file. I'd have to verify that ansible will resolve the path properly.

@jbsmith
Copy link
Author

jbsmith commented Aug 19, 2013

Looked at that as well, seems you are right. Thanks for the feedback.

lorin pushed a commit that referenced this issue Aug 20, 2013
Addresses issue #1
@lorin lorin closed this as completed Oct 16, 2013
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

2 participants