]> thyrsus.com Git - ssh-installkeys.git/commitdiff
Fix permissions of authorized_keys.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 16 May 2014 15:56:25 +0000 (11:56 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 16 May 2014 15:56:25 +0000 (11:56 -0400)
NEWS
ssh-installkeys

diff --git a/NEWS b/NEWS
index 95fb3a1630930a9bc8bd39901e74d3fc9646c9c6..c9cf4cbcea432c18ab80ba2cc619ac6c140dac36 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
                NEWS file for project ssh-installkeys
 
+Repository head:
+  Fix permissions of $HOME/.ssh/authorized_keys.
+
 1.8 @ 2013-04-18:
   Program can now use new-style config-file location ~/.config/ssh-installkeys
 
index 5426ee6cc9455926ab3b5eb9828578bec83baac7..3ad8c20cd86ed7b7de6381ab7b4645e8d411ca52 100755 (executable)
@@ -2131,6 +2131,7 @@ if __name__ == '__main__':
         else:
             print "Copying your public keys to", host
             session.scp(keyfile, "$HOME/.ssh/authorized_keys")
+            fixperms(session, "$HOME/.ssh/authorized_keys", False)
             config.remember(session)
             print "Keys for %s@%s have been installed." % (login, host)
     except SystemExit: