By default every user can run ps aux and read every command line on the box, passwords passed as arguments included. The hidepid mount option stops that.
Try it without a reboot first:
sudo mount -o remount,hidepid=2 /proc
ps aux | wc -l
With hidepid=2 a normal user can’t read the /proc/PID folders of other users, and those folders become invisible as well. ps and top then show only your own processes. Value 1 hides the contents but still shows that the PIDs exist, and 0 is the old default.
To keep it, add a line to /etc/fstab:
proc /proc proc defaults,hidepid=2,gid=adm 0 0
The gid= part names a group whose members still see everything, which is handy for monitoring agents. I use adm here as an example; pick whatever group your monitoring runs in.
This one can bite. Some system services, polkit for example, look at other processes through /proc and can misbehave when they suddenly can’t see them. On a headless server it is usually fine, but test a reboot and a sudo login before you rely on it. Root is never affected.
Further reading: proc(5) manual page