sshd-keygen - create an ecdsa host key with 640 permissions (#1023945)

This commit is contained in:
Petr Lautrbach 2013-12-09 11:14:59 +01:00
parent 89d920b074
commit 545aa0d026

View File

@ -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