Your IP : 216.73.216.170


Current Path : /etc/init.d/
Upload File :
Current File : //etc/init.d/ssh_key_hack.sh

#! /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

: