Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-15-2008, 06:49 PM
|
#1
|
|
Member
Registered: Mar 2008
Posts: 114
Rep: 
|
SSH-agent at startup
hi
looking at pstree, i can see that init starts a program called "sh" and then "ssh-agent" after booting.
1)What is "sh"?
2)can I see if "ssh-agent" has stored any passwords? I understand it's supposed to be a secure program but, what if someone had broken into my computer some other way and set their own passwords?
In the interest of security and the fact that I don't use ssh anyway how can I remove these two programs from startup?
|
|
|
|
09-15-2008, 09:21 PM
|
#2
|
|
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,300
Rep: 
|
Quote:
Originally Posted by CoffeeKing!!!
1)What is "sh"?
|
"sh" is the basic shell. On my Ubuntu 6.10 machine, it is linked to "dash":
Code:
[machine:~]:ls -l $(which sh)
lrwxrwxrwx 1 root root 4 2007-10-18 11:32 /bin/sh -> dash
On my machine, the man page for "sh" and "dash" are the same.
Quote:
Originally Posted by CoffeeKing!!!
2)can I see if "ssh-agent" has stored any passwords?
|
From the man page for ssh-agent:
Code:
ssh-add -l displays the identities currently held by the agent.
Quote:
Originally Posted by CoffeeKing!!!
In the interest of security and the fact that I don't use ssh anyway how can I remove these two programs from startup?
|
"ssh-agent" is being started by your window manager. Look for a file named "Xsession.options" in "/etc/X11". Paired with "ssh-add" it actually increases your security. The only reason to remove these from startup would be to decrease your security.
You should read the man pages for "sh", "ssh-agent", and "ssh-add" before you start doing things that might break your machine.
|
|
|
|
09-15-2008, 09:52 PM
|
#3
|
|
Member
Registered: Mar 2008
Posts: 114
Original Poster
Rep: 
|
Quote:
Originally Posted by David1357
"sh" is the basic shell. On my Ubuntu 6.10 machine, it is linked to "dash":
Code:
[machine:~]:ls -l $(which sh)
lrwxrwxrwx 1 root root 4 2007-10-18 11:32 /bin/sh -> dash
On my machine, the man page for "sh" and "dash" are the same.
From the man page for ssh-agent:
Code:
ssh-add -l displays the identities currently held by the agent.
"ssh-agent" is being started by your window manager. Look for a file named "Xsession.options" in "/etc/X11". Paired with "ssh-add" it actually increases your security. The only reason to remove these from startup would be to decrease your security.
You should read the man pages for "sh", "ssh-agent", and "ssh-add" before you start doing things that might break your machine.
|
thanks for reminding me what "sh" is.
I don't use ssh so I'm assuming there's no harm in removing ssh-agent from the startup. (unless someone has a good reason why I shouldn't remove it from startup) I'm guessing if I did remove it, that it would be a removal from the Xsession.options file?
|
|
|
|
09-23-2008, 10:54 AM
|
#4
|
|
Member
Registered: May 2005
Location: Northern VA
Distribution: Slackware, FreeBSD, OpenBSD, Mac OS X , Backtrack, Ubuntu on a Dell Mini 9
Posts: 780
Rep: 
|
You don't actually need ssh-agent in order to run the ssh service or client. If you aren't going to use ssh-agent, by all means, disable it from starting. It won't even hurt you if you removed it altogether, unless you've other software installed that depends upon it.
I definitely don't have it enabled to start up on my machines and I've only used it from time to time.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:23 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|