Lets see who is connected over ssh to my server

Here is another quick tip – How to find out in Red Hat ES Linux server who is connected over SSH to your server.

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.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.