Fixing Git Bash Vagrant issue

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.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容