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")'
If result is not found or irrelevant, Please contact us.
Submit your request