diff options
author | elijah <elijah@riseup.net> | 2013-06-11 16:30:58 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-11 16:30:58 -0700 |
commit | 275922ce4fa5c7d324d53a1165d9f03485907914 (patch) | |
tree | d37b6ab20c8c0de70c115c4387960e1b1cff9ead /lib/leap_cli/util/remote_command.rb | |
parent | ffcaa2169d768747c32093ffa00becd7951df640 (diff) |
store port in provider's known_hosts to prevent modification of ~/.ssh/known_hosts.
Diffstat (limited to 'lib/leap_cli/util/remote_command.rb')
-rw-r--r-- | lib/leap_cli/util/remote_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |