sshd-keygen - create an ecdsa host key with 640 permissions (#1023945)
This commit is contained in:
parent
89d920b074
commit
545aa0d026
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user