From 9d72feb36c7c55f22027d9d04e92891f2868a69b Mon Sep 17 00:00:00 2001 From: Gavin Williams Date: Thu, 27 Sep 2018 16:15:03 +0100 Subject: [PATCH] Add support for SSH config file to to 'vagrant ssh' command --- 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 43d1dcfbf..e2b0ffaba 100644 --- a/lib/vagrant/util/ssh.rb +++ b/lib/vagrant/util/ssh.rb @@ -178,6 +178,10 @@ module Vagrant "-o", "ForwardX11Trusted=yes"] end + if ssh_info[:config] + command_options += ["-F", ssh_info[:config]] + end + if ssh_info[:proxy_command] command_options += ["-o", "ProxyCommand=#{ssh_info[:proxy_command]}"] end