From: Eric S. Raymond Date: Fri, 16 May 2014 15:56:25 +0000 (-0400) Subject: Fix permissions of authorized_keys. X-Git-Tag: 1.9~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=d786a2cad85304ba7742b01e53d545723546070e;p=ssh-installkeys.git Fix permissions of authorized_keys. --- diff --git a/NEWS b/NEWS index 95fb3a1..c9cf4cb 100644 --- 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 diff --git a/ssh-installkeys b/ssh-installkeys index 5426ee6..3ad8c20 100755 --- a/ssh-installkeys +++ b/ssh-installkeys @@ -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: