Lets see who is connected over ssh to my server

Here is another quick tip – How to find out in [easyazon-link asin=”0071765654″ locale=”us”] Red Hat ES Linux [/easyazon-link] server who is connected over [easyazon-link asin=”0596008953″ locale=”us”] SSH [/easyazon-link] to your server.

su
cd /usr/sbin
./lsof -i :22
# or you can use this line
./lsof -i :ssh

You will get nice output about user, host, ip that is currently connected to your Linux server.

lsof

[easyazon-image align=”none” asin=”0132757273″ locale=”us” height=”160″ src=”http://ecx.images-amazon.com/images/I/51%2BQ3F-ZUxL._SL160_.jpg” width=”128″]

Leave a Reply