Closed agyeudar closed 5 years ago
vagrant ssh hangs from cygwin prompt. See the attached screenshot. I can do putty. it works I can also do vagrant ssh from powershell. it also works.
I am working on Win 7 Vagrant is 2.2.2 VirtualBox 5.2.22 cygwin 2.895
already tried -VAGRANT_PREFER_SYSTEM_BIN=1 vagrant ssh
Hi there. This is simply an issue with the ssh executable being used and it not behaving correctly within the cygwin environment. Using VAGRANT_PREFER_SYSTEM_BIN=1
will make Vagrant defer to a system installed ssh client instead of using the ssh client it provides, and that is what is happening as shown by your debug output. Ideally, you would want to use the cygwin provided ssh client, so you will want to ensure that it is installed. If you are still seeing the same behavior after it is installed, fix your $PATH
setup so that the cygwin ssh client is detected first. Currently the ssh client provided by git is what is being picked up ("C:\\Program Files\\Git\\usr\\bin/ssh.EXE"
).
Cheers!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Please note that the Vagrant issue tracker is in priority reserved for bug reports and enhancements. For general usage questions, please use the Vagrant mailing list: https://groups.google.com/forum/#!forum/vagrant-up. Thank you!
Tip: Before submitting your issue, don't hesitate to remove the above introductory text, possible empty sections (e.g. References), and this tip.
Vagrant version
Run
vagrant -v
to show the version. If you are not running the latest version of Vagrant, please upgrade before submitting an issue. $ vagrant -v Vagrant 2.2.2Host operating system
This is the operating system that you run locally. Win 7 Pro SP 1
Guest operating system
This is the operating system you run in the virtual machine.
Vagrantfile
Please note, if you are using Homestead or a different Vagrantfile format, we may be unable to assist with your issue. Try to reproduce the issue using a vanilla Vagrantfile first.
Debug output
Provide a link to a GitHub Gist containing the complete debug output: https://www.vagrantup.com/docs/other/debugging.html. The debug output should be very long. Do NOT paste the debug output in the issue, just paste the link to the Gist.
Expected behavior
What should have happened? It should ssh prompt
Actual behavior
What actually happened?
Steps to reproduce
References
Are there any other GitHub issues (open or closed) that should be linked here? For example: