Question

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

Posted June 2, 2021 124 views
UbuntuSecurityDigitalOceanDigitalOcean Droplets

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.

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.

×
Submit an Answer
1 answer

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

by Jamon Camisso
Learning how to manage users effectively is an essential skill for any Linux system administrator. In this guide, we will discuss how to add and delete users and assign sudo privileges on an Ubuntu 18.04 server.