From 19d1cae92cd17f70044082505d7b0f9ed5aab2af Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 25 Jan 2018 08:35:08 -0800 Subject: [PATCH] Add log warning when native ssh executable is not found --- lib/vagrant/util/ssh.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/vagrant/util/ssh.rb b/lib/vagrant/util/ssh.rb index 8d120aab0..31ce31da5 100644 --- a/lib/vagrant/util/ssh.rb +++ b/lib/vagrant/util/ssh.rb @@ -72,6 +72,10 @@ module Vagrant # If we didn't find an ssh executable, see if we shipped one if !ssh_path ssh_path = Which.which("ssh") + if ssh_path && Platform.windows? && (Platform.cygwin? || Platform.msys?) + LOGGER.warn("Failed to locate native SSH executable. Using vendored version.") + LOGGER.warn("If display issues are encountered, install the ssh package for your environment.") + end end if !ssh_path