From d786a2cad85304ba7742b01e53d545723546070e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 16 May 2014 11:56:25 -0400 Subject: [PATCH] Fix permissions of authorized_keys. --- NEWS | 3 +++ ssh-installkeys | 1 + 2 files changed, 4 insertions(+) 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: -- 2.43.0