aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/util/remote_command.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-11 16:30:58 -0700
committerelijah <elijah@riseup.net>2013-06-11 16:30:58 -0700
commit275922ce4fa5c7d324d53a1165d9f03485907914 (patch)
treed37b6ab20c8c0de70c115c4387960e1b1cff9ead /lib/leap_cli/util/remote_command.rb
parentffcaa2169d768747c32093ffa00becd7951df640 (diff)
downloadleap_cli-275922ce4fa5c7d324d53a1165d9f03485907914.tar.gz
leap_cli-275922ce4fa5c7d324d53a1165d9f03485907914.tar.bz2
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.rb2
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)