wok-4.x rev 11999
openssh: Gen ecdsa key if not exist
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Mar 04 23:00:55 2012 +0100 (2012-03-04) |
parents | 2142911d2464 |
children | 32132190f724 |
files | openssh/stuff/openssh |
line diff
1.1 --- a/openssh/stuff/openssh Sun Mar 04 22:37:40 2012 +0100 1.2 +++ b/openssh/stuff/openssh Sun Mar 04 23:00:55 2012 +0100 1.3 @@ -25,6 +25,10 @@ 1.4 echo "Generating $NAME dsa key... " 1.5 ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -C '' -N '' 1.6 fi 1.7 + if [ ! -f /etc/ssh/ssh_host_ecdsa_key ] ; then 1.8 + echo "Generating $NAME ecdsa key... " 1.9 + ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C '' -N '' 1.10 + fi 1.11 if active_pidfile $PIDFILE sshd ; then 1.12 echo "$NAME already running." 1.13 exit 1