]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
include a note in known_hosts to not edit known_hosts
authorelijah <elijah@riseup.net>
Fri, 28 Jun 2013 05:38:38 +0000 (22:38 -0700)
committerelijah <elijah@riseup.net>
Fri, 28 Jun 2013 05:38:38 +0000 (22:38 -0700)
lib/leap_cli/commands/node.rb

index 2f4fab867f8f5ea28c0fd54705fcee4e8eb37bab..d47ead1b21ccc4659ecc8a370a6cfe315122c994 100644 (file)
@@ -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|