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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-29-2006, 09:34 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Posts: 19
Rep:
|
where did this tmp/ssh agent file come from?
Hi,
Could someone please tell me if I should be worried about seeing the following file on my system
/tmp/ssh-XXPT3WBp/agent.946
I use putty to log in but didn't think I was using ssh-agent.
Thanks.
D.
|
|
|
05-31-2006, 07:03 AM
|
#2
|
Member
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310
Rep:
|
Hello LeftPeg,
Its ok, nothing to worry about!
You may have OpenSSH server running in the background which is creating those temporary files. To confirm, you may run following command:-
service sshd status
Have fun
|
|
|
05-31-2006, 07:08 AM
|
#3
|
Member
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310
Rep:
|
Hello again,
If you are running a system which does not have service command
you may fire up following:-
and look for something like
Quote:
root 4324 0.0 0.1 5116 1224 ? Ss 09:05 0:00 /usr/sbin/sshd
|
PS All the above commands must be fired as root
To stop those services running in background you may:-
Quote:
chkconfig --level 2345 sshd off
|
Bye
|
|
|
06-01-2006, 08:58 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
Here's a cronjob script examine and remove stale ssh-agent sockets. It logs which user uses / has used what ssh-agent sockets.
Code:
# SSH
find /tmp -maxdepth 1 -type d -name ssh-\* | while read dirn; do
find ${dirn} -type s -maxdepth 1 -name agent.\* | while read f; do
ownage=$(stat -c "owner:%u,group:%g" "${f}")
/sbin/fuser "${f}" 2>&1>/dev/null
case "$?" in
0) logger "SSH socket dir \"${dirn}\" in use by ${ownage}.";;
1) rm -rf "${dirn}"; logger "Removed stale SSH socket dir \"${dirn}\" for ${ownage}.";;
*) logger "Caught unhandled retval \"$?\".";;
esac
done
done
|
|
|
All times are GMT -5. The time now is 01:42 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
|
|