No ubuntu VM prompt using Vagrants on Git Bash

After logging into a virtual machine using vagrant ssh

with GitBash on Windows 10, I don't see any prompts in the directory. Although it runs the python web forum (for the Udacity tutorial on Getting Started with Relational Databases ), it won't let me start psql

so I can continue with the tutorial. I can change directories, list file information, and run python, but the prompt doesn't work as usual.

Screenshot: Screenshot .

Note that the forum is running, this screenshot was taken after I logged out and restarted the vagrant.

Wandering version 1.9.6

Ubuntu version 16.04.2 LTS

All programs are installed or running in administrator mode.

+3


source to share


3 answers


I was unable to get Git Bash to work, but the show window for Oracle's VM VirtualBox Manager works very well. I used Git Bash to start a virtual machine and then switched to the Oracle VM UI window.



0


source


I had the same problem when trying to set up Laravel Homestead - in my case it's a Git Bash / MINGW64 issue.

My workflow was to use PuTTY



  • Install PuTTY, PuTTYgen
  • Create a .ppk of the key you use to connect to vagrant vm by uploading the private key to PuTTYgen and save the private key
  • Create a new PuTTY session with your vagrant details, in my case I just copied what was shown after running "vagrant up" at SSH, username (my PuTTY Host Name would be "vagrant @ localhost": 2222)
  • specify ppk in PuTTY config under Connection-> SSH-> Auth-> Private key for authentication

In short, try connecting to PuTTY or another terminal emulator and see if you're in luck.

0


source


I had the same problem truing to connect to a Homestead (Laravel) virtual session using a virtual box and I was trying to connect through Gitbash MINGW64 too.

I tried the same in cmd.exe (command: vagrant ssh) and it worked.

So there must be a problem with Git bash.

0


source







All Articles