PDA

View Full Version : How do I stop SSH service?


Th3 M3xican
7th February 2005, 12:00 AM
I just port scanned myself and for some reason I have OpenSSH_3.9pl running. I tripple checked and it is my box. How do I stop this because I dont see why it is running or why I need it running.

megaprogman
7th February 2005, 12:22 AM
$ su -
# cd /etc/rc.d/init.d
# sh sshd stop

this will stop ssh until you reboot. in order to turn it off for good, do this :

$ su -
# chkconfig --del sshd

Void Main
7th February 2005, 12:26 AM

$ su -
# service sshd stop
# chkconfig sshd off

pigpen
7th February 2005, 01:09 AM
$ su -
# cd /etc/rc.d/init.d
# sh sshd stop

this will stop ssh until you reboot. in order to turn it off for good, do this :

$ su -
# chkconfig --del sshd

"chkconfig --del" is a bit too harsh! I suggest you follow VoidMain's instructions.

Th3 M3xican
7th February 2005, 03:12 AM
Alright thanks. Does any one have an idea of why it was running? I dont think I ever installed it or any applications that would enable it.

ogetbilo
7th February 2005, 03:33 AM
Actually, it is installed and enabled by default.

Patriots won the superbowl *sigh*

pigpen
8th February 2005, 01:51 AM
In fact, sshd ist probably the only reasonable service to be running...
at least if you want to control it remotely...