LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2004, 10:42 PM   #1
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
Watching SSH pts/# connections live...


How would I go about watching /dev/pts/x and still let his commands go through? If I cat it then he doesn't recieve any stdout. This has been bothering me for quite some time, and your help is appreciated. Thanks.
 
Old 01-22-2004, 08:45 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
For the tty's you could use the /dev/vcs[0-63], but for the same efect to pts, I don't know...

Maybe could be used an scriptusing ps ...
 
Old 01-22-2004, 12:34 PM   #3
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Original Poster
Rep: Reputation: 30
I think I've solved the problem. The command 'cat /dev/pts/0 | tee -a pts0log' will work, to log it to a file. Tee takes input and writes to a find and prints to stdout. Well, I guess I'll test it.
 
Old 01-22-2004, 02:49 PM   #4
mac_phil
Member
 
Registered: Sep 2003
Distribution: Mandrake 10.0
Posts: 200

Rep: Reputation: 30
If you want to watch a specific connection live, use screen. It allows you to watch a user in real time. man screen, and google screen user's guide. (It has a chapter on multiple users.)

Otherwise I'm not aware of any way to 'watch', in real time, a random login.
 
Old 01-22-2004, 07:42 PM   #5
rex
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware bay-bee
Posts: 11

Rep: Reputation: 0
try ttysnoop

that lets you watch and control a users session.

there are other ways that log users commands via inserting a module into the kernel but that gets a bit complicated unless you know what your doing.

there's also a key logger program on freshmeat. It doesnt pick up all the characters but it works sufficiently
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
watching mms:// live streaming ciopi Linux - General 8 09-18-2005 03:45 PM
SSH doesn't accept connections basse- Linux - Software 1 05-23-2004 08:33 AM
Humorous pts/## problem with SSH and X-Forwarding KneeLess Linux - Networking 0 04-12-2004 06:54 PM
Can I see ssh connections? bruno buys Linux - Networking 4 11-19-2003 03:46 PM
SSH - Refused Connections bfloeagle Linux - Networking 6 08-31-2001 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration