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 6ca2f775e1
commit 3b37f5b889
1 changed files with 1 additions and 1 deletions

View File

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