[openssh] sshd-keygen - create an ecdsa host key with 640 permissions (#1023945)
plautrba
plautrba at fedoraproject.org
Mon Dec 9 10:15:23 UTC 2013
commit 545aa0d02615bf0189ac9833fc2fc740f6a68dca
Author: Petr Lautrbach <plautrba at redhat.com>
Date: Mon Dec 9 11:14:59 2013 +0100
sshd-keygen - create an ecdsa host key with 640 permissions (#1023945)
sshd-keygen | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sshd-keygen b/sshd-keygen
index 012bb64..5f158fd 100644
--- a/sshd-keygen
+++ b/sshd-keygen
@@ -96,7 +96,7 @@ do_ecdsa_keygen() {
rm -f $ECDSA_KEY
if test ! -f $ECDSA_KEY && $KEYGEN -q -t ecdsa -f $ECDSA_KEY -C '' -N '' >&/dev/null; then
chgrp ssh_keys $ECDSA_KEY
- chmod 600 $ECDSA_KEY
+ chmod 640 $ECDSA_KEY
chmod 644 $ECDSA_KEY.pub
if [ -x /sbin/restorecon ]; then
/sbin/restorecon $ECDSA_KEY.pub
More information about the scm-commits
mailing list