Add support for SSH config file to to 'vagrant ssh' command

This commit is contained in:
Gavin Williams 2018-09-27 16:15:03 +01:00 committed by Chris Roberts
parent 122ef7307c
commit 9d72feb36c
1 changed files with 4 additions and 0 deletions

View File

@ -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