Saturday, April 14, 2012

List of logged in users (with port) in a ssh server.

Run

netstat --numeric --numeric-ports --program | grep ^tcp

To list them, this'll also show the port via which they're connected to your box/server.

No comments:

Post a Comment