LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2004, 06:53 PM   #1
williewang
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
strace for ssh


Hi,

I'm hoping I could get some help from an strace foo master/script star. I want to set up an ssh proxy, which is easy enough, but my company wants to be able to view the content in case proprietary stuff is being sent out. Since we can't do it with IDS and the requests keep coming in (most of them legitimate), I was thinking we could set up a proxy and do an strace on the sshd process.

I can do the strace if I call out the PID, but I can't seem to figure out how to set up strace so that it triggers whenever sshd spawns a new process. After pouring through the strace man pages, it seems that what I want to do can only be scripted. So I tried simple bash and perl loops--doesn't seem to work too well and when it does work, the logging is attrocious. It seems like it can't be too tough, a simple "if sshd, then strace -options," but I'm falling on my face.

Any ideas on which direction I should go? Am I wasting my time? Any thoughts are much appreciated.

Cheers,

Travis
 
Old 08-03-2004, 08:32 PM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
strace -vf
-v is verbose
-f follows child processes and threads
 
  


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
strace app RajRed Linux - Software 1 12-03-2005 12:39 AM
Usage of strace mdb84 Linux - Software 1 03-25-2005 02:13 AM
strace question ronopolis Linux - Software 0 01-19-2005 10:41 AM
strace useradd phoenix_fei Programming 1 11-29-2004 10:32 AM
bash + strace = ..... gearoid Programming 3 05-19-2004 03:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:34 AM.

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