From 838346c8110d49dc725ef95243e8ce95fc6db841 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 21 Mar 2012 01:03:22 -0400 Subject: [PATCH] Clearer progress messages. --- ssh-installkeys | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ssh-installkeys b/ssh-installkeys index a527d9a..addbfc2 100755 --- a/ssh-installkeys +++ b/ssh-installkeys @@ -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 -- 2.43.0