The following steps will fix the issue where the blank shell input appears after running vagrant ssh
on Windows 10:
This bug appears to be caused by a conflict between the ssh executable that comes with vagrant and the one that comes with Git Bash.
The problem can be solved by setting the VAGRANT_PREFER_SYSTEM_BIN environment variable to 1.
To do this, follow the below steps:
Step 1) Click Start and type “System” to open up the System menu within control panel.
Step 2) Click Advanced system settings from the System menu.
图片.png
Step 3) From the System Properties window, click on Environment Variables…
Step 4) Under System variables, select New… to add a new environment variable.
图片.png
Step 5) In the Variable name box, type VAGRANT_PREFER_SYSTEM_BIN and in the Variable value box enter 1 and click OK.
图片.png
Step 6) Close and re-open any Git Bash windows you have open, and re-run vagrant ssh.
图片.png
You should now be able to execute commands on you Vagrant server.
网友评论