Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
viewing ssh traffic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rayne
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2005
Posts: 131

PostPosted: Sun Oct 15, 2006 1:06 pm    Post subject: viewing ssh traffic Reply with quote

How can I view who's doing what on my sshd?
Back to top
View user's profile Send private message
Dammital
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 189

PostPosted: Sun Oct 15, 2006 2:21 pm    Post subject: Reply with quote

You can't see into the ssh session of course. Consider enabling "BSD process accounting" in your kernel config, and then emerge acct. This will give you the tools to keep and report on a per-process log file.
Back to top
View user's profile Send private message
feld
Guru
Guru


Joined: 29 Aug 2004
Posts: 593
Location: USA

PostPosted: Mon Oct 16, 2006 11:46 pm    Post subject: Reply with quote

w and who will show you who is in at least.... combine with their info from there and output from ps you can get a good idea of what they're running
_________________
< bmg505> I think the first line in reiserfsck is

if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); }
Back to top
View user's profile Send private message
shanew
n00b
n00b


Joined: 16 Sep 2006
Posts: 34
Location: Austin, TX

PostPosted: Wed Oct 18, 2006 1:40 pm    Post subject: Reply with quote

I would second the use of process accounting, which is useful for other reasons as well.

There are also programs that will allow you to watch or snoop on terminal sessions, which would allow you to see exactly what users are typing and seeing in real-time, but they may require modification to the sshd code to work properly (and some used to require modifications to kernel code as well). There are, of course, some pretty serious privacy, security and ethical issues involved in this level of surveillance, and if you're looking to do this in any official organization, such a setup should be approved by management, spelled out in policy, and made clear to users.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum