Strange behavior with vagrant ssh and mintty

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Strange behavior with vagrant ssh and mintty

Jeremy Jackson
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:~$




--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/f8b68df1-9738-4262-82f3-179466fdccc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

[SOLVED] Re: Strange behavior with vagrant ssh and mintty

Jeremy Jackson
Regrettably, this is a problem with mintty not agreeing with programs that use Windows console mode, such as more recent versions of Vagrant, apparently.
:(
https://github.com/mintty/mintty/wiki/Tips#inputoutput-interaction-with-alien-programs

On Monday, November 20, 2017 at 12:51:17 PM UTC-7, Jeremy Jackson wrote:
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:  <a href="https://help.ubuntu.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;">https://help.ubuntu.com
 * Management:     <a href="https://landscape.canonical.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;">https://landscape.canonical.com
 * Support:        <a href="https://ubuntu.com/advantage" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;">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:  <a href="https://help.ubuntu.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;">https://help.ubuntu.com
 * Management:     <a href="https://landscape.canonical.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;">https://landscape.canonical.com
 * Support:        <a href="https://ubuntu.com/advantage" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;">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:  <a href="https://help.ubuntu.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;">https://help.ubuntu.com
 * Management:     <a href="https://landscape.canonical.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;">https://landscape.canonical.com
 * Support:        <a href="https://ubuntu.com/advantage" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;">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:  <a href="https://help.ubuntu.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;">https://help.ubuntu.com
 * Management:     <a href="https://landscape.canonical.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;">https://landscape.canonical.com
 * Support:        <a href="https://ubuntu.com/advantage" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;">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:  <a href="https://help.ubuntu.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fhelp.ubuntu.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHFeOo15MUU2PpUqzD8UNjmfwpOfQ&#39;;return true;">https://help.ubuntu.com
 * Management:     <a href="https://landscape.canonical.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flandscape.canonical.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZaoMC6tt--JvFzAQ8yZFmWixa4g&#39;;return true;">https://landscape.canonical.com
 * Support:        <a href="https://ubuntu.com/advantage" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fubuntu.com%2Fadvantage\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNET3VL79eChps9vsYApmr1fQpjVSw&#39;;return true;">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:~$




--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/056967d6-0a91-40ac-8155-fa56bfff0b0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Strange behavior with vagrant ssh and mintty

Eduardo Herrera
In reply to this post by Jeremy Jackson
This solved a similar issue I had.


Look at the response from @jk3us


Cheers!
Ed -

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/23f52af0-3b6d-45c2-a38c-1194320c6e07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.