3 # /etc/rc.d/sshd: start/stop ssh daemon
8 if [ ! -f /etc
/ssh
/ssh_host_key
]; then
9 /usr
/bin
/ssh-keygen
-t rsa1
-N "" -f /etc
/ssh
/ssh_host_key
> /dev
/null
11 if [ ! -f /etc
/ssh
/ssh_host_rsa_key
]; then
12 /usr
/bin
/ssh-keygen
-t rsa
-N "" -f /etc
/ssh
/ssh_host_rsa_key
> /dev
/null
14 if [ ! -f /etc
/ssh
/ssh_host_dsa_key
]; then
15 /usr
/bin
/ssh-keygen
-t dsa
-N "" -f /etc
/ssh
/ssh_host_dsa_key
> /dev
/null
17 if [ ! -f /etc
/ssh
/ssh_host_ecdsa_key
]; then
18 /usr
/bin
/ssh-keygen
-t ecdsa
-N "" -f /etc
/ssh
/ssh_host_ecdsa_key
> /dev
/null
23 if [ -f /var
/run
/sshd.pid
]; then
24 kill $
(< /var
/run
/sshd.pid
)
25 rm -f /var
/run
/sshd.pid
27 killall
-q /usr
/sbin
/sshd
36 echo "usage: $0 [start|stop|restart]"