Benjamin_Loison closed issue Benjamin_Loison/linux#41 2024-11-08 19:23:01 +01:00
Avoid users to see commands executed by others
Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 19:21:47 +01:00
Run command on a given user SSH connection
grep 'CENSORED from ' /var/log/auth.log 
Benjamin_Loison reopened issue Benjamin_Loison/linux#44 2024-11-08 19:14:33 +01:00
Run command on a given user SSH connection
Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 19:14:31 +01:00
Run command on a given user SSH connection
sudo ps aux 
Benjamin_Loison closed issue Benjamin_Loison/linux#44 2024-11-08 19:14:31 +01:00
Run command on a given user SSH connection
Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 19:12:55 +01:00
Run command on a given user SSH connection
SSH open_session on LemnosLife VPS from anonymous!
SSH close_session on LemnosLife VPS from anonymous!
ssh anonymous@lemnoslife.com
Output:
Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 19:10:28 +01:00
Run command on a given user SSH connection

Would be nice to exclude multiple users without using and.

The Stack Overflow question 11396740 may help.

Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 19:02:54 +01:00
Run command on a given user SSH connection

With &:

time ssh benjamin@lemnoslife.com hostname
Output:
vps713872

real	0m0.645s
user	0m0.116s
sys	0m0.011s
Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 18:58:25 +01:00
Run command on a given user SSH connection
ls /etc/pam.scripts/
ls: cannot access '/etc/pam.scripts/': No such file or directory
sudo mkdir /etc/pam.scripts
/etc/pam.scr…
Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 18:47:37 +01:00
Run command on a given user SSH connection

The purpose is to use matrix-commander.

Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 18:46:30 +01:00
Run command on a given user SSH connection

Being notified when the user logs out would also be interesting but in a second time.

Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 18:44:33 +01:00
Run command on a given user SSH connection

DuckDuckGo search Linux be notified of SSH connection.

Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 18:44:06 +01:00
Run command on a given user SSH connection

Could in theory modify .bashrc but I suspect that the user can avoid running this file, for instance by using SCP. Furthermore, the aim is to not trust the user to not remove this statement from…

Benjamin_Loison commented on issue Benjamin_Loison/linux#44 2024-11-08 18:39:51 +01:00
Run command on a given user SSH connection
ssh root@lemnoslife.com 'date && tail -n 5 /var/log/auth.log'
Output:
Fri Nov  8 06:38:07 PM CET 2024
2024-11-08T18:38:04.547790+01:00…
Benjamin_Loison opened issue Benjamin_Loison/linux#44 2024-11-08 18:35:26 +01:00
Run command on a given user SSH connection
Benjamin_Loison commented on issue Benjamin_Loison/linux#41 2024-11-08 18:19:53 +01:00
Avoid users to see commands executed by others

DuckDuckGo search /etc/fstab syntax.