LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2006, 09:45 AM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Question sshd starting for no good reason?!


In my installation I allowed the config to set the ssh daemon to start. Later, I realized that this is not a good idea since I don't plan to use ssh at the moment.

From netstat I can see that ssh-agent is running, and when I issue a ps I can also see the process /usr/bin/ssh-agent -s running, and I have no idea how it gets started.

I issued chmod -x rc.sshd from root. The ls shows

-rw-r--r-- 1 root root 1222 2005-09-01 17:46 rc.sshd

What's happening here?!

Thanks,
Rand

P.S. Yes, I restarted the system! And in the system log I can't see any indication that it's starting. Before I did the chmod I could see a line of output. But now no message is being produced.

Last edited by Randux; 02-13-2006 at 09:48 AM.
 
Old 02-13-2006, 10:21 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

The ssh is started by /etc/rc.inet2. If you want you could comment it out but since you change the x (excute flag)then it should not start. Another way would be to move the rc.ssh out of the rc.d directory into say /etc/rc.d/rc-tmp, this of course after you mkdir /etc/rc.d/rc-tmp.

My one question is why are fearing the ssh running? You password too simple? You keys are not there?

HTH!
 
Old 02-13-2006, 11:01 AM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
I'd like to understand how it gets started since it is not supposed to start. I don't like mysteries.

Why would I run a service if I don't plan to use it? That's just bad administration. And why would I have a door I don't plan to use? That's just bad security.

I hate the learning curve!

Last edited by Randux; 02-13-2006 at 11:33 AM.
 
Old 02-13-2006, 01:50 PM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Well, you'll be happy to know that you did successfully stop the ssh daemon from running by chmodding /etc/rc.d/rc.sshd.

You'll also (I hope) be happy to know that, actually, ssh-agent isn't part of the ssh server (sshd), so doesn't leave any "doors" into your system.

I'll leave you and the learning curve to figure it out, but I fished out this site that might help you:
http://www-128.ibm.com/developerworks/library/l-keyc2/

- Piete.

PS: You can always read the /etc/rc.d/* files to see what is going on - you would find that it only starts `sshd` as a background process and nothing to do with ssh-agent at all!

PPS: To get rid of it, remove the openssh package =)
 
Old 02-13-2006, 01:54 PM   #5
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Are you using xfce?
 
Old 02-13-2006, 04:35 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by piete
Well, you'll be happy to know that you did successfully stop the ssh daemon from running by chmodding /etc/rc.d/rc.sshd.

You'll also (I hope) be happy to know that, actually, ssh-agent isn't part of the ssh server (sshd), so doesn't leave any "doors" into your system.

I'll leave you and the learning curve to figure it out, but I fished out this site that might help you:
http://www-128.ibm.com/developerworks/library/l-keyc2/

- Piete.

PS: You can always read the /etc/rc.d/* files to see what is going on - you would find that it only starts `sshd` as a background process and nothing to do with ssh-agent at all!

PPS: To get rid of it, remove the openssh package =)
Piete does it again!

Beleive it or not, I did spend a long time looking over /etc/rc.d and I was just unable to spot the problem because I had just read a post about chmod +x, -x etc. to stop scripts from running and I didn't know what to look for. I'll have another try. But this looks like a good agent so I guess it should let it live in case I use gnupg. I'll have to research this a little- thanks very much for the lini.

Thanks!
Rand
 
Old 02-13-2006, 04:37 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by uselpa
Are you using xfce?
Yes, it struck me as a good intermediate choice, so I didn't install KDE/KDEI/GNOME packages. I have it set up pretty much the way I want at the moment, although I can't get my touchpad to work. I read a ton of posts and tried many things but nothing worked.

Is there a connection between xfce and the ssh-agent?
 
Old 02-14-2006, 12:47 AM   #8
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Look into the startup scripts of xfce. ssh-agent gets started there.
 
Old 02-14-2006, 02:32 PM   #9
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
The relevant file is /etc/X11/xdg/xfce4/xinitrc.
 
Old 02-14-2006, 04:47 PM   #10
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by uselpa
The relevant file is /etc/X11/xdg/xfce4/xinitrc.
Thank you very much.
 
  


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
FC4: KDE starting for no reason, iPod won't detect JRR883 Linux - Software 2 10-23-2005 09:54 AM
sshd starting twice ryedunn Linux - Software 4 01-30-2005 09:47 PM
SSHD stops working for no reason. Travis86 Linux - Networking 7 08-30-2004 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:56 PM.

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