Enabling SFTP Logging in Reflection or F-Secure SSH for UNIX
Technical Note 1937
Last Reviewed 09-Jun-2005
Applies To
Reflection for Secure IT UNIX Server version 6.0
F-Secure SSH Server for UNIX version 5.x
Summary
This technical note describes how to enable SFTP logging in Reflection for Secure IT UNIX Server and F-Secure SSH Server for UNIX.
Note the following:
- Details provided in this technical note are specific to a host running the Solaris operating system. File locations and command syntax may be different on other host operating systems.
- Beginning with version 6.0, the F-Secure ssh product line has a new name Reflection for Secure IT.
For information about using debug mode in Reflection or F-Secure SSH for Windows, see Technical Note 1928.
Enabling SFTP Logging
Follow these steps to enable SFTP logging in Reflection or F-Secure SSH for UNIX.
Note: Depending on the number of users and number of files uploaded or downloaded, the log file may fill up quickly.
- Open the sshd2_config file in a text editor. By default, this file is located in the /etc/ssh2 directory.
- Uncomment (remove the # symbol from the beginning of the line) the following line:
SftpSyslogFacility LOCAL7
- Save the file.
- Open the syslog.conf file in a text editor. By default, this file is located in the /etc directory.
- Add the following two lines:
# WRQ Reflection for Secure IT SFTP
local7.<level> /var/adm/sftplog
Replace <level> with one of the following two values:
Value
|
Functions Logged
|
notice
|
This value logs when the SFTP server starts and stops, directory listings, file deletions, file uploads and downloads, and when files are renamed.
|
info
|
This value logs the same functions as above, plus server responses.
|
- Issue the following commands to create the file where the log information will be stored:
# cd /var/adm
# touch sftplog
# chown root sftplog
# chgrp sys sftplog
# chmod 600 sftplog
- Issue the following commands to stop the daemons:
#kill -9 `cat /var/run/syslog.pid`
#/etc/init.d/sshd2 stop
- Issue the following commands to start the daemons:
# /etc/init.d/sshd2 start
# /usr/sbin/syslogd
Logging starts once the daemons are restarted.
Disabling SFTP Logging
Follow these steps to disable SFTP logging.
- Open the sshd2_config file in a text editor. By default, this file is located in the /etc/ssh2 directory.
- Comment out (insert a # at the beginning of the line) the following line:
- Save the file.
- Open the syslog.conf file in a text editor. By default, this file is located in the /etc directory.
- Remove the following two lines:
# WRQ Reflection for Secure IT SFTP
local7.<level> /var/adm/sftplog
- Save the file.
- At the command prompt, enter the following commands to stop the log and ssh daemons:
#kill -9 `cat /var/run/syslog.pid`
#/etc/init.d/sshd2 stop
- Once the ssh daemons have been stopped, enter the following commands to restart the daemons:
# /etc/init.d/sshd2 start
# /usr/sbin/syslogd
- If you want to delete the log, delete the file /var/adm/sftplog.
Related Technical Notes
| 1928 |
Using Debug Mode to Troubleshoot F-Secure SSH for Windows |
| 2291 |
Using Debug Mode to Troubleshoot Reflection for Secure IT Windows Server |