Results 1 to 3 of 3
  1. #1

    Question How to "watch" an SSH user in real-time on CentOS?


    What is the best way to "watch" an SSH user in real-time? (Assuming I am root.) I want to see exactly what they're typing, as they type it, and the resulting output.

    (So "history" or watching ".bash_history" won't be suitable.)

    I've found a few possible options:

    • ttysnoop
    • screen

    What do you think? Is there anything better? ttysnoop seems a little complicated to install, and I'm not sure how to get screen to "see" another user's session.

    I am using a standard cpanel server on CentOS.

    Want to sell domain names? Sign up today for an reseller account from a trusted eNom ETP provider.
    * We provide support and service to over 3245 happy eNom domain name and SSL certificate resellers!
      0 Not allowed!

  2. #2
    Join Date
    Apr 2007
    US, UK, Europe, ME
    To watch their session using "screen -x" they need to be working within a screen session so they will know that you are watching the session too. This is usually being used for remote maintenance/remote assistance or for education purposes.

    Option A: You can just try watching or tailing the virtual console and try to change the number vcsa1, vcsa2 etc:

    cat /dev/vcsa1

    Option B: Try Sniffy ,

    Option C: You can also replace their shell with a wrapper that logs their activity before passing them to the real shell.

    * Spying is illegal almost in every country so be careful.
      0 Not allowed!

  3. #3
    Join Date
    Nov 2013
    You can install screen with "yum install screen" command. You can list the existing screens with screen -ls command. You can attach a screen with command screen -r [screen name]. If its already attached at the other end, you will have to use screen -x. At any time to exit from the screen, press (ctl+A) + D.
      0 Not allowed!

Similar Threads

  1. Centos Mailllog says "User Unknow"
    By timmyd in forum Dedicated Server
    Replies: 0
    Last Post: 03-28-2011, 11:02 PM
  2. How to disable "right-click" on desktop for Windows "Guest" user?
    By mrzippy in forum Computers and Peripherals
    Replies: 5
    Last Post: 08-07-2007, 03:48 PM
  3. What is the main difference between "Red Hat Enterprice" and "CentOS"?
    By bestprobe in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 07-14-2005, 02:15 AM
  4. Replies: 7
    Last Post: 06-13-2005, 03:02 PM
  5. Replies: 10
    Last Post: 06-30-2004, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts