LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
Question kill sshd


Greetings:

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
ak99505
Member
 
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
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can do
Code:
#chkconfig sshd off
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 AM.

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