<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>sftp logging patch for openssh</title> <link rel="stylesheet" type="text/css" href="./default.css"> </head> <body> <table width="100%"> <tbody> <tr class="nobg"> <td align="center">http://sftplogging.sourceforge.net<br> <br> </td> </tr> <tr> <td align="center" colspan="2"><a href="/">Main</a> | <a href="/news.html">News</a> | <a href="/docs">Documentation</a> | <a href="/contact.html">Contact Me</a> | <a href="/download">Download</a> | <a href="/links.html">Links</a></td> </tr> </tbody> </table> <p><b>Preamble</b></p> <p>I wrote and tested this patch on all openssh-3.(5+)p+ software on Redhat Linux 7.1, 7.2, 8.0, ES2.1, AS2.1, AS3.0, and Fedora Core 2. It has also been reported to work under other operating systems. See the <a href="../download/README">README</a> in the download section for details. I have received emails from people on the ssh mailing list who said that it also works on Solaris and on Redhat 9, but I haven't confirmed this myself. However, the patch does not use any operating-system specific system calls, so if you are able to compile openssh on your system, the patch should work. <p> If you successfully use the patch on a different operating system or with a different version of openssh, I'd like to hear about it: <a href=mailto:mikem@nmt.edu>mikem@nmt.edu</a>. <p> If the patch fails to compile or work, let me know. <p><b>Basic Installation</b></p> <p> To install this patch you will need: <br> - the GNU "patch" program<br> - the source code for openssh-3.xpx <p> 1. Unpack the openssh source (/path/to/openssh-3.xp1) <br> 2. download the patch and put it in /path/to (don't stick it in the openssh directory) <br> 3. run: "patch -p0 < openssh-3.xp1.sftplogging.patch" <br> 4. compile openssh with your normal compile options <br> 5. edit /etc/syslog.conf to if you're using ftp logging <p><b>Installation with chroot-ssh patch</b> <p>Many users use this patch in conjunction with the chroot-ssh and chroot-sftp-server patches. You may need to perform the following: make a /path/to/chroot/dev/log and run syslogd -a /path/to/chroot/dev/log, because your chroot environment will need its own /dev/log. More detailed instructions are provided in the <a href="../download/README">README</a> in the download section. <p><b>Usage</b></p> <p> Everything you need to use it is included in the man pages. Basically, there are six new directives at your disposal in /etc/ssh/sshd_config:<br> <b>LogSftp <br> SftpLogfacility <br> SftpLogLevel<br> SftpUmask<br> SftpPermitChmod<br> SftpPermitChown</b> <p>For more info, see man sftp-server (8) and man sshd_config (5). <table width="100%"> <tbody> <tr> <td align="center"><a href="http://sourceforge.net">http://sourceforge.net</a> is hosting this site</td> </tr> </tbody> </table> <br> </body> </html>