Daemon logs in AIX

I have to enable sftp and scp daemon logs in AIX 7.1. Currently only ftp daemons are being logged. What are the steps for doing so? Also programs such as filezilla uses sftp service to log into AIX. How do I ensure that sftp/scp continues to function after making change? Also needs to know what does ftp -d option in /etc/inetd.conf does?

Thank you

You will probably need to edit:

/etc/ssh/sshd_config

and add a line to enable syslog, for example:

 SyslogFacility
	      Gives the facility code that is used when logging messages  from
	      sshd(8).	 The  possible values are: DAEMON, USER, AUTH, LOCAL0,
	      LOCAL1, LOCAL2, LOCAL3, LOCAL4,  LOCAL5,	LOCAL6,	 LOCAL7.   The
	      default is AUTH.

All this information is available on the AIX man page for sshd and sshd_config in case you want to read more.

Hi Neo,
I had changed this on my sshd_config file but once I did that and stopped/started sshd daemon tge sftp login through filezilla stopped working so I had to revert back. This was the entry change

Subsystem sftp /usr/sbin/sftp-server -f DAEMON -I INFO

Thanks

please try this:

#vi /etc/ssh/sshd_config

Locate the following line:
Subsystem sftp /usr/sbin/sftp-server
Add the following parameters "-l INFO -f AUTH" at the end:

Subsystem sftp /usr/sbin/sftp-server -l INFO -f AUTH

afterwards configure syslog:

#vi /etc/syslog.conf

Add the following line in syslog.conf

auth.info /tmp/sftp.log

create the logfile and refresh/restart the services

#touch /tmp/sftp.log
#refresh -s syslogd
#stopsrc -s sshd
#startsrc -s sshd

no idea what ftp -d does - I have never seen that on any box

2 Likes