LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-04-2004, 08:31 PM   #1
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Rep: Reputation: 30
ssh listening on port 22


I have every line commented in inetd.conf, yet ssh is listening on port 22. Obviously I can cure this by deleting the ssh deamon, as I'm not using it anyway, I just would like to know how this is listening when every line under inetd.conf is commented out?
 
Old 06-04-2004, 08:56 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
sharpie,

sshd is typically run independent of inetd. Check your init scripts (/etc/init.d, /etc/rc.d, /etc/init.d/rc.?) to see where it is run. You can probably just rename the binary (/usr/sbin/sshd -> /usr/sbin/sshd-norun).

Good Luck,
chris
 
Old 06-05-2004, 09:46 AM   #3
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
chmod -x /etc/rc.d/rc.sshd
 
Old 06-07-2004, 11:00 AM   #4
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
service sshd stop?
 
Old 06-07-2004, 11:05 AM   #5
doehn
LQ Newbie
 
Registered: Jun 2004
Location: Erlangen/Germany
Distribution: Debian 30r2
Posts: 11

Rep: Reputation: 0
Hi,

why not

update-rc.d -f ssh remove

this won't cause a slow shutdown while trying to stop a non existent daemon or an error message

cu doehn
 
Old 06-07-2004, 12:20 PM   #6
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Edit /etc/ssh/sshd_config and change the port you want it to listen on. If you want to stop it altogether:
chkconfig --level 23456 sshd off
then service sshd stop
 
Old 06-07-2004, 07:42 PM   #7
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You guys must not be familure with Slackware...

Aeiri got it right.
 
Old 06-07-2004, 08:56 PM   #8
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Just make it nonexecutable? Won't that just generate errors in your startup log when it's called?
 
Old 06-08-2004, 01:04 AM   #9
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Slackware checks if the file exists and is executable before it tries to execute it, so there wouldn't be any errors if the file wasn't there, or was non-executable.
 
Old 06-08-2004, 03:28 PM   #10
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Cool, thanks.
 
  


Reply


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
2 servers listening on port 80 possible? scrawl Linux - Software 1 03-13-2005 05:06 PM
listening to a usb port fred22 Programming 0 01-11-2005 07:53 PM
Listening on a serial port calebsg Linux - General 2 10-13-2004 10:45 AM
Apache listening on port.. well it isn't Newman_SCO Linux - Newbie 10 08-15-2003 12:32 PM
sendmail listening on port 25 dskny Linux - Software 14 08-12-2003 06:52 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration