| Current Path : /var/www/iplanru/data/www/intesco.ru/d59ed/ |
| Current File : /var/www/iplanru/data/www/intesco.ru/d59ed/ssh_key_hack.sh.tar |
etc/init.d/ssh_key_hack.sh 0000666 00000001155 15077126427 0011514 0 ustar 00 #! /bin/sh
### BEGIN INIT INFO
# Provides: ssh_key_hack
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 6
# Short-Description: ssh keys creation.
# Description: Create ssh keys.
### END INIT INFO
case "$1" in
start|"")
rm -f /etc/ssh/ssh_host_*
/usr/bin/ssh-keygen -t rsa -N '' -f /etc/ssh/ssh_host_rsa_key
/usr/bin/ssh-keygen -t dsa -N '' -f /etc/ssh/ssh_host_dsa_key
/usr/bin/ssh-keygen -t rsa1 -N '' -f /etc/ssh/ssh_host_key
/usr/sbin/update-rc.d ssh_key_hack.sh remove >/dev/null 2>&1
;;
*)
echo "Usage: ssh_key_hack [start]" >&2
exit 3
;;
esac
: