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

Load ssh keys into the ssh-agent before vagrant up #71

Open
becw opened this issue Feb 5, 2020 · 0 comments
Open

Load ssh keys into the ssh-agent before vagrant up #71

becw opened this issue Feb 5, 2020 · 0 comments

Comments

@becw
Copy link
Member

becw commented Feb 5, 2020

Some of our environments run ssh commands (e.g. git clone with an ssh path) that are reliant on key forwarding. When the host doesn't have any keys loaded (check ssh-add -l), no keys are forwarded to the VM and these operations fail -- whereas if they were run on the host, the keys would be transparently loaded at that point.

Could we use a trigger to run ssh-add on vagrant up? And maybe only run it if ssh-add -l is empty?

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

1 participant