SolvedVVV Broken Key Forwarding and GitHub host verification failure

In order to add the custom site, I read I just need set repo with provision for a default WordPress website.

Now, I just want to customize the provision, adding other actions specific for my work (such install plugins, themes, XML data, so on). So, I made my own private repository where I did the thing I need and everything could be all fine, except for the fact that I have an error when the provisioner tries to clone a private repository because he cannot authenticate. Unfortunately, I need that this would be in a private repository and not a public one.

Expected Behavior

I expect me one of these things:

  • ask me the username or password in order to make the authentication
  • give me the ssh key of vagrant and ask me to add into my Github/Bitbucket account
  • use the private key of my local host (and not vagrant one) that should be already added in my Github/Bitbucket account

Current Behavior

This is the error if I try to write the git URL for ssh connection (that is

==> default: Host key verification failed.
==> default: fatal: Could not read from remote repository.

Instead, this is the error if I put the https URL for git repository:

==> default: fatal: could not read Username for '': No such device or address

Possible Solution

Try to connect ssh with the private key of the local host machine, not vagrant one, I don't know if it's possible and how to do that.

Steps to Reproduce (for bugs)

  1. Clone into a private repository
  2. Add new custom site into vvv-config.yml from the private repository
  3. Make vagrant provision

Your Environment

  • VVV version: 2.0.0
  • Vagrant version: 1.9.0
  • VM Provider name: VirtualBox
  • VM Provider version: 5.1.22
  • Operating System and version: MacOS 10.12.5
21 Answers

✔️Accepted Answer

For reference:

  • Use SSH not HTTPs for GitHub URLs
  • Test with the very latest VVV on the develop branch, it has a lot of fixes that haven't made it to master yet
  • Verify you're on the latest version, that includes the branch you're using
  • Update Vagrant itself. Halt your VMs, uninstall Vagrant then install the latest version ( 2.0 at time of writing )
  • Verify your SSH Agent is running and active. You can't forward SSH keys if there's nothing to forward on to the VM
  • Include the relevant terminal output, even when trying new suggested solutions

As a final note, don't fork the default site repo, use or fork the custom site repo

Related Issues:

VVV Broken Key Forwarding and GitHub host verification failure
For reference: Use SSH not HTTPs for GitHub URLs Test with the very latest VVV on the develop branch...
vagrant vagrant box update - Fails with 404 Not Found error
A workarround to add in your Vagrantfile: Vagrant version Host operating system Ubuntu 16.04.3 LTS G...
vagrant vagrant --help displays a rubygems error
To fix this error: Vagrant version Host operating system Expected behavior vagrant and vagrant --hel...
vagrant Vagrant up forces shutdown of VM
Update: Please upgrade vagrant to 1.9.5 as it's released The version contains fix for this issue ...
vagrant libvirt Install error: in all=': undefined method group_by' for nil:NilClass (NoMethodError)
Could you try purging the Debian vagrant package and installing from
vagrant 1.8.7 fails to download or update boxes
I just sudo rm -rf /opt/vagrant/embedded/bin/curl and it works now It's looked like vagrant can fall...
drupal vm Composer install fails without proper swap
or you can create a swap file sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /s...
vagrant VBoxManage.exe: error: Invalid NIC number
Confirm the problem It is reproduced with Windows10/Vagrant 1.8.3/VirtualBox 5.0.20 and hashicorp/pr...
vagrant Openssl error on Vagrant 1.8.7 / MacOs Sierra
The workaround to link the existing openssl as proposed in GH-7747 seems to work as well sudo ln -sf...
bento Timeout error during vagrant up
I had these same issues with migrating to bento/ubuntu-16.04 version 2.30 (2.29 worked for me) I am ...
vagrant Error while executing "VBoxManage" on vagrant up
For me vboxreload is actually sudo /sbin/vboxconfig Vagrant version Vagrant 1.8.1 Host operating sys...
vagrant mount.nfs: requested NFS version or transport protocol is not supported
It was still a problem for me in 2.1.2 in Manjaro Linux with a static IP Lately me and my coworkers ...
vagrant Vagrant 1.8.5 embedded open ssl error
Yes I have openssl installed via brew The work around suggested by @garadox seemed to work though: ...
vagrant "vagrant plugin install vagrant-libvirt" on Ubuntu 14.04 must display a user-friendly message if libvirt is not installed
Hi I tried to use the CONFIGURE_ARGS trick but it failed with this message: So I had to add a second...
vagrant An error occurred in the underlying SSH library that Vagrant uses.
what worked for me was: #Vagrant 1.8.6 Mac OSX 10.11.6 VB - 5.1.8 Guest box - ubuntu/trusty64 (up to...
vagrant Cannot access
I was able to fix the issue by switching from = 'precise64' to = 'hashic...
drupal vm Failing to install Drupal on macOS High Sierra - NFS filesystem issues
@ajhoddinott OMG That works thank you! For explicit instructions on Mac OS High Sierra open the app ...
vagrant NFS permission problem on MacOS Sierra
@araines just chcked ls -lR but it does seem not to work for me still a lot of permission denied whe...
vagrant libvirt Can't vagrant up or destroy "domain about to create is already taken"
I solved by removing the machine and volume with virsh In some cases ...
vagrant No guest IP was given to the Vagrant core NFS helper
@richard-scott found the problem The version of the VirtualBox guest OS tools was out of date and ca...
vagrant vagrant plugin install: timed out (
中国朋友,请看这里: 问题我已经解决了。 解决方法: time out 解决办法: Vagrant version Vagrant 1.9.7 Host operating system Ubuntu...
vagrant Cannot Start VirtualBox
Hi @anonRegions Can you try the following? (You need to find the launch agent on your machine): Here...
vagrant Exec error: fork/exec /opt/vagrant/embedded/bin/ruby: no such file or directory
This is down to Manjaro using Arch's Vagrant package Vagrant version Vagrant 2.0.1 but pacman -Qe va...
vagrant Guest machine default name too long with VirtualBox 5.2.8 (VERR_CFGM_NOT_ENOUGH_SPACE)
@ravn Could you try adding this to the virtualbox provider block in your Vagrantfile: ensure the gue...
vagrant mount.nfs: access denied by server while mounting
Hi Everyone Catalina has been annoying me since it was released (Catalina is a bad woman isn't she?)...
vagrant enhancements - native docker provider for mac users
You need to set force_host_vm to false as Seth mentioned Try: Vagrant version Run vagrant -v to show...
vagrant Undefined method traceback instead of error message when running vagrant w/o virtualbox
Hi all I got the same problem after installing virtualbox 5.1 but thanks to issue #5572 I got it wor...
vagrant fork/exec error
Hello all: I know I'm beating a dead horse over this topic In the latest version of OSX (10.13.5) no...
drupal vm 503 Service Unavailable
@TheNugg Even I was facing the same issue I was not able access Drupal website it was throwing 503 e...
vagrant 1.9.6 Failed to present a shell prompt
The solution I found is here Basically Please note that the Vagrant issue tracker is reserved for bu...
vagrant Vagrant up fails with VirtualBox 5.1.24
I had the same problem vagrant up stuck on Mounting NFS shared folders for too long I found the solu...
vagrant vagrant up error No usable default provider could be found for your system
I had this issue because of Support Virtualbox 6.1 vagrant box list hashicorp/precise64 (virtualbox ...
drupal vm Timed out while waiting for the machine to boot.
@dimatteomaurizio - Thank you SO much for the detailed error report How to reproduce the error: > cd...
vagrant Script: import_vm_vmcx.ps1
Can you share the Vagrantfile and some info on where you got this box or how you built it? That woul...
vagrant Vagrant init or Vagrant up not work
Hi @51v4n Your issue is different than the original reporter of this issue Today after work with vag...
vagrant libvirt waiting for domain to get ip
@swilmet probably would have helped if I remembered at the start the quickest way to debug boot issu...
gutenberg Can't NPM Install: ENOENT: no such file or directory .staging/core-js-c2a9e69c (solved with rm -rf node_modules && npm install)
Delete package-lock.json and run npm install Hey @mintplugins which version of node and npm do you u...
ddev In WSL2 ddev start fails at docker-credential-desktop.exe, "error listing credentials"
I had to set credsStore: in my ~/.docker/config.json .. it was previously set to credentials.exe ...
gutenberg What is the proposed way to update blocks?
I am facing the same issue and absolutely agree with Fabian on this What if the frontend switches to...
gutenberg Are iframes a viable long-term solution for meta boxes?
Do all metaboxes have to work on mobile? Yes why wouldn't they? What are the cases (if any) that wou...
woocommerce The Header Mini Cart does not update after a product is removed
Here is my fix EXPLANATION OF THE ISSUE After removing a product on the Shopping cart page /cart/ ...
FoundationPress Missing modules when running npm run build or npm install
The error in the original post is from running npm run build Hi I am working on a foundation press p...
gutenberg Supporting Metaboxes
I also want to emphasize that many plugins use custom post types that rely on meta boxes without a c...
gutenberg Block API: Server-side awareness of block types
@aduth thanks for creating this ticket and CCing me! there is still a lack of general understanding ...
woocommerce Rethinking 3.6's Dashboard Ads (#22857 )
​It appears what you're doing here is tracking usage reporting that back to your API and returning t...
gutenberg Immediate crash of editor upon opening new post page (solved by updating nginx config)
Fixed tldr: if you run Nginx you might need to update your nginx config I have the same problem With...
FoundationPress After Node update, Issue running npm run production
Try this: npm uninstall gulp --save Then once that is complete run: npm install then: npm run build ...
gutenberg Gutenberg breaks completely if site URL is not the same as wordpress URL
Here's what I did to make it work (I only have 1 site): Issue Overview I have wordpress installed on...
lando Unhandled rejection Error: problem parsing null.tooling.cache. Ensure it is valid JSON!
Hi I had the same issue just now and apparently I only missed adding the name on my .lando.yml file ...
gutenberg The editor has encountered an unexpected error. (solved by updating the try_files nginx configuration)
Just to confirm the following worked for me: try_files $uri $uri/ /index.php$is_args$args; @Zenexer ...