Cloudkul Support

How to track the ssh activity of particular user on Linux Server ?

We can track the ssh activity of a particular user by editing its .bashrc file and adding an extra line in it -:

PROMPT_COMMAND='history -a >(logger -t "$USER[$PWD] $SSH_CONNECTION")'

 

Is this article is helpful?

People like and 0 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request

Start a Project






    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home