diff --git a/lib/vagrant/action/builtin/ssh_run.rb b/lib/vagrant/action/builtin/ssh_run.rb index edd7cb6bf..5ca2ef68f 100644 --- a/lib/vagrant/action/builtin/ssh_run.rb +++ b/lib/vagrant/action/builtin/ssh_run.rb @@ -1,5 +1,6 @@ require "log4r" +require "vagrant/util/platform" require "vagrant/util/ssh" require "vagrant/util/shell_quote" @@ -49,7 +50,12 @@ module Vagrant # don't then we default to a TTY if !opts[:extra_args].include?("-t") && !opts[:extra_args].include?("-T") opts[:extra_args] << "-t" - opts[:extra_args] << "-t" + + if Util::Platform.windows? + # Windows currently has a bug where STDIN won't be a TTY. + # This absolutely forces the allocation. + opts[:extra_args] << "-t" + end end opts[:extra_args] << command