Strange behavior with vagrant ssh and mintty

28 views
Skip to first unread message

Jeremy Jackson

unread,
Nov 20, 2017, 2:51:17 PM11/20/17
to Vagrant
My workplace just upgraded me to a new Win10 computer, so still getting set up. (Also bitter about still being forced to use Windows :[)

I run vagrant through mintty, installed at the same time as Git for Windows.

When trying to `vagrant ssh` into a machine it does not display a prompt, though it does respond as if a prompt is there. I did some experimenting using ubuntu and centos boxes and it's the same no matter what.

I've discovered that by running `vagrant ssh -- -t -t` it will display the prompt, so I'm a little confused about this.

Are there any vagrant settings I can implement to avoid having to type out that full command each time?

Here are the different things I've tried along with their results.
You'll notice that only on the last one do I actually get the expected terminal prompt.
jeremy.jackson@CG002161-AD:~/Projects/j_timer$ vagrant ssh -t
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

39 packages can be updated.
12 updates are security updates.


pwd
/home/vagrant
exit
jeremy.jackson@CG002161-AD:~/Projects/j_timer$ vagrant ssh -t -t
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

39 packages can be updated.
12 updates are security updates.


pwd
/home/vagrant
exit
jeremy.jackson@CG002161-AD:~/Projects/j_timer$ vagrant ssh --no-tty
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

39 packages can be updated.
12 updates are security updates.


pwd
/home/vagrant
exit
jeremy.jackson@CG002161-AD:~/Projects/j_timer$ vagrant ssh -- -t
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

39 packages can be updated.
12 updates are security updates.


pwd
/home/vagrant
exit
jeremy.jackson@CG002161-AD:~/Projects/j_timer$ vagrant ssh -- -t -t
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-87-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

39 packages can be updated.
12 updates are security updates.


Last login: Mon Nov 20 19:37:39 2017 from 10.0.2.2
vagrant@vagrant:~$




Jeremy Jackson

unread,
Nov 20, 2017, 4:30:12 PM11/20/17
to Vagrant
Regrettably, this is a problem with mintty not agreeing with programs that use Windows console mode, such as more recent versions of Vagrant, apparently.
:(

Eduardo Herrera

unread,
Dec 2, 2017, 1:44:25 PM12/2/17
to Vagrant
This solved a similar issue I had.


Look at the response from @jk3us


Cheers!
Ed -
Reply all
Reply to author
Forward
0 new messages