Results 1 to 4 of 4
Hi all, Hope you can help me with this..
I have Ubuntu 9.04 and I would like to know what is the command to find out the number of connections ...
- 06-04-2010 #1Just Joined!
- Join Date
- Jun 2010
- Location
- Mexico
- Posts
- 2
Number of connections per user (command and log)... how to??
Hi all, Hope you can help me with this..
I have Ubuntu 9.04 and I would like to know what is the command to find out the number of connections per user (i.e. ssh) and also what syslog module do I need to modify and how to enable it in order to have it logged, thing is I need to generate this event in order to see it in RSA enVision, I've tried with "who" but nothing is displayed, do I need to program something besides that? or what can I do? to have no. of connections and have that logged so I can see the event in enVision.
Please take note I'm new at Linux and Im just starting to understand it.
thanks a lot.
- 06-04-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
What kind of connections are you referring to, incoming (logins) or outgoing (network streams)?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-04-2010 #3Just Joined!
- Join Date
- Jun 2010
- Location
- Mexico
- Posts
- 2
Not logins, much more like outgoing as you stated like SSH, FTP, including terminals. All connections per user logged in the Ubuntu machine.
Hope this help, I really need to find out how to pull this off.
Thanks!!
- 06-05-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
Well, one of the things you can use is netstat. See what you get with netstat -e --numeric-users | less. At the top of the output you will see who (last field is the user id) is connected to what. There are more tools to use as well, but you know what you need to know - remember that Google is your friend!
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote