From 275922ce4fa5c7d324d53a1165d9f03485907914 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 11 Jun 2013 16:30:58 -0700 Subject: store port in provider's known_hosts to prevent modification of ~/.ssh/known_hosts. --- lib/leap_cli/util/remote_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/leap_cli/util/remote_command.rb') diff --git a/lib/leap_cli/util/remote_command.rb b/lib/leap_cli/util/remote_command.rb index 1197bfe..c24a543 100644 --- a/lib/leap_cli/util/remote_command.rb +++ b/lib/leap_cli/util/remote_command.rb @@ -64,7 +64,7 @@ module LeapCli; module Util; module RemoteCommand ssh_options_override ||= {} { :ssh_options => { - :host_key_alias => node.name, + # :host_key_alias => node.name, << incompatible with ports in known_hosts :host_name => node.ip_address, :port => node.ssh.port }.merge(contingent_ssh_options_for_node(node)).merge(ssh_options_override) -- cgit v1.2.3