- generating new keys moved to opensshd.init
stb, PLEASE LEAVE THIS REL IN TEST UNTIL IT IS REALLY TESTED OUT!
Changed files:
openssh.spec -> 1.91
%post server
/sbin/chkconfig --add sshd
%post server
/sbin/chkconfig --add sshd
-if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
- %{_bindir}/ssh-keygen -t rsa1 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
- chmod 600 %{_sysconfdir}/ssh_host_key
-fi
-if [ ! -f %{_sysconfdir}/ssh_host_rsa_key -o ! -s %{_sysconfdir}/ssh_host_rsa_key ]; then
- %{_bindir}/ssh-keygen -t rsa -f %{_sysconfdir}/ssh_host_rsa_key -N '' 1>&2
- chmod 600 %{_sysconfdir}/ssh_host_rsa_key
-fi
-
-if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
- %{_bindir}/ssh-keygen -t dsa -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
- chmod 600 %{_sysconfdir}/ssh_host_dsa_key
-fi
if [ -f /var/lock/subsys/sshd ]; then
/etc/rc.d/init.d/sshd restart 1>&2
else
if [ -f /var/lock/subsys/sshd ]; then
/etc/rc.d/init.d/sshd restart 1>&2
else