]> thyrsus.com Git - ssh-installkeys.git/commitdiff
Clearer progress messages.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 21 Mar 2012 05:03:22 +0000 (01:03 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 21 Mar 2012 05:03:22 +0000 (01:03 -0400)
ssh-installkeys

index a527d9a70acf679f71e3d543a6b1f22e60c27bbd..addbfc204d6f91fdcc3fbcec2ff11915f3f682e6 100755 (executable)
@@ -754,8 +754,10 @@ if __name__ == '__main__':
          fixperms(session, "~/.ssh", check)
 
          # OK, install keys remotely if they don't exist
-         if not check and not session.exists("~/.ssh/authorized_keys"):
-             print "Copying your authorized_keys file to", host
+         if session.exists("~/.ssh/authorized_keys"):
+             print "authorized_keys already exists on", host
+         elif not check:
+             print "Copying your public keys to", host
              session.scp(keyfile, "~/.ssh/authorized_keys")
     except SystemExit:
         pass