Re: SSH Logging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike wrote:
On Mon, 17 Mar 2008, Thomas Kappelmueller wrote:

Hallo!

Is there a easy way to log all the output of a SSH-Session?

Not only the commands but actually all the output you get in the SSH-Client. I am using Fedora and CentOS.

I've tried a few different things in the sshd_config but with no success.

Thankyou

-Tom


Is 'script' what your looking for?


Hi!

Yes thanks alot. I put the script command into .profile.

Code:
if [ -n "${SSH_CLIENT}" -a "${USER}" = "root" ]; then
	script -q ~/session_logs/$(date +%Y%m%d-%k%M%S)
fi

Cheers!
-Tom


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux