Debian – Prevent logging and deleting SSH commands
To log SSH commands via the shell and prevent the history from being emptied, we can use a few small tricks. Of course, these settings can be removed again as root (if the other root user knows this). First we open the configuration file and add the following lines: We then save the file and …