Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
102 stars 54 forks source link

SSH agent to Vagrant does not always work #168

Open ottok opened 4 years ago

ottok commented 4 years ago

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 commented 3 years ago

We have not been able to reproduce this.

mattijv commented 2 years ago

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.