Open cskwrd opened 2 years ago
I dug around a little more and found GH-8615, and it seems to mention the same problem. I have tested, and when running pageant.exe
agent forwarding works while the provisioner is running.
Can the fact that provisioner requires pageant.exe
for agent forwarding be added to the docs?
@cskwrd: I can reproduce that SSH agent forwarding in a provisioning context does not work on Windows. See https://github.com/hashicorp/vagrant/issues/12062#issuecomment-1279788972 for a minimal test case.
But I would classify this behavior as a bug and not a lack of documentation: The official OpenSSH package works correctly on Windows. The problem is the shell provisioning implementation of Vagrant, that seems to use another mechanism than the properly functioning vagrant ssh
command.
As a cross-platform SSH user, I am not willing to rely on the third party SSH authentication agent pageant
(https://en.wikipedia.org/wiki/PuTTY).
Vagrant version
Vagrant 2.2.19
Host operating system
Windows 10
-VirtualBox 6.1.34
Guest operating system
I tried:
hashicorp/bionic64
andbento/debian-10
Vagrantfile
NOTE: A valid GitHub public key is needed in the host ssh agent.
Expected behavior
A message indicating a successful connection to GitHub SSH servers.
Actual behavior
Permission is denied.
Steps to reproduce
vagrant up
vagrant ssh -c "ssh -Tv git@github.com -o StrictHostKeyChecking=no"
References
Are there any other GitHub issues (open or closed) that should be linked here? For example: