summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-06-27 22:38:38 -0700
committerelijah <elijah@riseup.net>2013-06-27 22:38:38 -0700
commitba717bfe16612c8313632f3a9555c6ce68291e63 (patch)
tree21d5d4c74b6159b436f2d85dbd383cadf1cb8229 /lib
parent9a4faff699e4cdfdf4302e1baf6e5bf4cbff3bd1 (diff)
include a note in known_hosts to not edit known_hosts
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/node.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb
index 2f4fab8..d47ead1 100644
--- a/lib/leap_cli/commands/node.rb
+++ b/lib/leap_cli/commands/node.rb
@@ -123,6 +123,10 @@ module LeapCli; module Commands
#
def update_known_hosts
buffer = StringIO.new
+ buffer << "#\n"
+ buffer << "# This file is automatically generated by the command `leap`. You should NOT modify this file.\n"
+ buffer << "# Instead, rerun `leap node init` on whatever node is causing SSH problems.\n"
+ 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|