[openssh/f18] sshd-keygen - create an ecdsa host key with 640 permissions (#1023945)
plautrba
plautrba at fedoraproject.org
Mon Dec 9 10:26:08 UTC 2013
commit 3b37f5b889038e243052fa81b482b77458b7c382
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 13a0043..db2845c 100644
--- a/sshd-keygen
+++ b/sshd-keygen
@@ -95,7 +95,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