Logging all activity via SSH

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Is it possible to set Linux to log all activity by a user who logs in
via SSH?  It currently logs when they log in and out, but I also need
it to log the commands they type.  We're moving to SFTP (FTP over
SSH), and I need the same level of logs we get from standard FTP
(using ProFTP), where it shows what files they transmit or really
anything they do.

Is this possible?

Thanks --


Re: Logging all activity via SSH

Quoted text here. Click to load it

If you're using OpenSSH 4.4 or newer, you can enable sftp logging
by setting -f and -l on the Subsystem line in sshd_config.  There are
also third-party patches for logging on older versions.

Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline