Sharing Knowledge | System Admin Articles

See other users SSH sessions in Linux



Are wondering what your users are doing in their SSH sessions? Do you want to see, whats happening there?

Try the following:
# cat /dev/vcs1
This will show you what happenening on the first console. If someone is typing, you’ll be able to get an output of their keystrokes.

Note: You should have "root" access for this.

Replace /dev/vcs1 with /dev/vcs2 or /dev/vcs3 and so on for other consoles.

Enjoy..!



Labels: Linux, SSH

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

0 Comments for "See other users SSH sessions in Linux"

What do you think about this Article? Add your Opinion..!

Back To Top