Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-30-2006, 06:03 PM   #1
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question kill sshd


Im using SLES9.I command killall sshd but when I restart my sles the sshd is automatically on.What is the command to permanently stop the sshd.
Old 10-30-2006, 06:10 PM   #2
Registered: Feb 2005
Location: Missouri
Distribution: Archlinux
Posts: 85

Rep: Reputation: 17
just remove the startup script from your rc directories, or it might be a simbolic link to the script, not sure how the /etc directy structure is for that distro. with ubuntu and a lot of other distros you'll have a series of directories
/etc/rc?.d replace ? with 0-6 and you'll have simbolic links in each directory to services that get started or killed for that run level, usually named S??sshd or K??sshd depending on wether that serves should be Started or Killed for that run level. the ?? will be a 2 digit number, is is just in references to order of precidence. change the S??sshd to K??sshd and it will stop the sshd in that run level, i'm guessing you don't want it in any run level show change it for all of them.
Old 10-31-2006, 04:24 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
You can do
#chkconfig sshd off


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 02:22 PM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM
reboot does not kill sshd erif Slackware 6 05-12-2004 11:39 AM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration