Question

How can I track the activity of ssh that installed in ubuntu droplet?

I installed ssh in my droplet to share with my . Is there a way to track activity or monitor who use my ssh account for their purposes. Such as their browsing history, websites, hosts, etc. not personal details.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @ruckeyromero

If you share the same account you can always use the history command in the terminal and this will show you the commands that they’ve executed.

Additionally, you can track down the logs for the ssh connections. On a Ubuntu droplet, you can monitor the /var/log/auth.log

You can also create e separate account for the other users and limit their privileges if you want to be sure they won’t make any server config changes and etc.

https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-18-04

Regards, Alex