A simple script to log and save an entire SSH session (with the date) on Linux systems
Install these packages first : ssh screen
apt install ssh screen -y
For Debian distributions or
dnf install ssh screen -y
For RedHat ones
In a directory of your choice copy the repo :
git clone https://github.com/XenorInspire/Log-SSH-Session.git
Move in the directory :
cd Log-SSH-Session/
Make sure that the script has the right to be executed :
chmod +x SSH_session.sh
Execute the script where it was copied with higher privileges :
./SSH_session.sh <@IP> <user> <session_name>