Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Logging all activity via SSH
March 30, 2007, 5:06 pm
rate this thread
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?
Re: Logging all activity via SSH
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.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum