View previous topic :: View next topic |
Author |
Message |
KWhat l33t
Joined: 04 Sep 2005 Posts: 660 Location: Los Angeles
|
Posted: Thu Sep 07, 2006 5:03 pm Post subject: Anonymous SSH |
|
|
Does anyone have a script to clean up log files when a user logs in via ssh? I dont want my box to do any logging for a paticular ssh account when a user logs in or logs out. I dont know if i can exclude only one account from logging or if i need to put a script in to remove enterys for that user in the logs when they login and out. I know this is shady business but I would like a totally anonymous account. Any ideas? |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu Sep 07, 2006 5:41 pm Post subject: |
|
|
If you use syslog-ng as logger you could define an appropriate filter statement which matches on anything 'program sshd' + (inside msg text) 'username'. _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
KWhat l33t
Joined: 04 Sep 2005 Posts: 660 Location: Los Angeles
|
Posted: Thu Sep 07, 2006 5:50 pm Post subject: |
|
|
Using klogd. |
|
Back to top |
|
|
Zepp Veteran
Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Thu Sep 07, 2006 6:15 pm Post subject: |
|
|
Why? I just have to ask, as I can't think of what legit application/purpose this would serve?
Last edited by Zepp on Thu Sep 07, 2006 10:29 pm; edited 1 time in total |
|
Back to top |
|
|
rullzer n00b
Joined: 25 Apr 2006 Posts: 46 Location: Amsterdam Netherlands
|
Posted: Thu Sep 07, 2006 9:15 pm Post subject: |
|
|
Indeed what is the point. I mean you trust some users. But also trusted and advanced users can fuck with your system. By acident or on purpose. Always good to have logs in case something goes bad... |
|
Back to top |
|
|
KWhat l33t
Joined: 04 Sep 2005 Posts: 660 Location: Los Angeles
|
Posted: Fri Sep 08, 2006 1:52 am Post subject: |
|
|
purely anonymous ssh tunnel to an offsite server. |
|
Back to top |
|
|
Zepp Veteran
Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Fri Sep 08, 2006 4:11 am Post subject: |
|
|
I assume you have root on this box, if you are able to change ssh logs, so whats the need to be annonymous |
|
Back to top |
|
|
KWhat l33t
Joined: 04 Sep 2005 Posts: 660 Location: Los Angeles
|
Posted: Fri Sep 08, 2006 6:07 am Post subject: |
|
|
yes of course... if i was tring to comprimise it i would already know how to do this =P |
|
Back to top |
|
|
|