From 98839b3158b0f2cd7fab3ce277a531b13fe9fc75 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 5 Jul 2013 00:05:09 -0700 Subject: don't bind hosts in known_hosts to particular ports, since it causes all kinds of confusion. originally, i added this to prevent modification of ~/.ssh/known_hosts, but now we do this by just setting UserKnownHosts to /dev/null. --- lib/leap_cli/commands/node.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 7bcfb23..b700a90 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -129,13 +129,7 @@ module LeapCli; module Commands buffer << "#\n" manager.nodes.keys.sort.each do |node_name| node = manager.nodes[node_name] - hostnames = [node.name, node.domain.internal, node.domain.full, node.ip_address].map {|hn| - if node.ssh.port == 22 - hn - else - "[#{hn}]:#{node.ssh.port}" - end - }.join(',') + hostnames = [node.name, node.domain.internal, node.domain.full, node.ip_address].join(',') pub_key = read_file([:node_ssh_pub_key,node.name]) if pub_key buffer << [hostnames, pub_key].join(' ') -- cgit v1.2.3