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

SSH agent to Vagrant does not always work #168

Open
ottok opened this issue Sep 25, 2020 · 2 comments
Open

SSH agent to Vagrant does not always work #168

ottok opened this issue Sep 25, 2020 · 2 comments
Labels
feature-vagrant Issues related to the Vagrant development environment help wanted

Comments

@ottok
Copy link
Contributor

ottok commented Sep 25, 2020

One user reported that when running vagrant ssh and then running various wp-pull-* commands they all ask for password. However SSHing into the same remote server from outside the Vagrant box works.

Running ssh-add -L inside the Vagrant box does not list any keys. Apparently SSH key forwarding does not always work despite being configured explicitly in the Vagrantfile. This was on Vagrant 2.0.2, so it could not have been related to something new in Vagrant, but rather some kind of regression or situation that can breach ssh-agent.

@ottok ottok transferred this issue from Seravo/wp-vagrant Jan 27, 2021
@ottok
Copy link
Contributor Author

ottok commented Jan 27, 2021

We have not been able to reproduce this.

@ypcs ypcs added the feature-vagrant Issues related to the Vagrant development environment label Oct 13, 2021
@mattijv
Copy link

mattijv commented Nov 5, 2021

We are facing this issue in the vagrant up stage when trying to pull the production DB. Even though the host has valid ssh keys, a password is needed to pull the DB.

After the VM is up and running, doing a vagrant ssh and wp-pull-production-db works with ssh keys as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-vagrant Issues related to the Vagrant development environment help wanted
Projects
None yet
Development

No branches or pull requests

3 participants