diff --git a/plugins/commands/ssh_config/command.rb b/plugins/commands/ssh_config/command.rb index 7e8a5ce84..7df07ff6e 100644 --- a/plugins/commands/ssh_config/command.rb +++ b/plugins/commands/ssh_config/command.rb @@ -32,10 +32,6 @@ module VagrantPlugins ssh_info = machine.ssh_info raise Vagrant::Errors::SSHNotReady if ssh_info.nil? - if options[:host] && options[:host].to_s != machine.name.to_s - next - end - variables = { host_key: options[:host] || machine.name || "vagrant", ssh_host: ssh_info[:host],