View Single Post
Posts: 1 | Thanked: 2 times | Joined on Feb 2010
#10
Originally Posted by shaq View Post
thanks! great
now i'mn finally able to stop sshd ...
and how about to configure to not start automatically at system boot?
i just want to use it when i start it manually
i didn't find this option in config file
in /etc/event.d edit the related ssh file and comment with # the unneeded:

Code:
#start on stopped rcS

console output

#respawn

pre-start script
    if [ ! -d /var/run/sshd ] ; then
        mkdir /var/run/sshd
        chmod 755 /var/run/sshd
    fi
end script

exec /usr/sbin/sshd -D
 

The Following 2 Users Say Thank You to gmacchi For This Useful Post: