Howto log multiple sftpd instances with their chroot shared via NFS

Jim Knoble jmknoble at pobox.com
Thu Sep 30 13:31:19 AEST 2021


If 'internal-sftp' means that the SFTP server is just a forked child of sshd, would the 'sshd -e' flag work to send log messages from internal-sftp to stderr?

If so, it may be worth just sending all logging from sshd to stderr (sowie [daemontools]).

Someone with time and ingenuity on their hands may even be able to send the stderr output on to syslog-ng and dispense with any need to filter it or send it to a file....

If internal-sftp doesn't work that way for ${reasons}, it may be worth adding that functionality for this sort of use case.

____________________
[daemontools]: https://cr.yp.to/daemontools.html


-- 
jmk

> On Sep 29, 2021, at 19:44, Peter Stuge <peter at stuge.se> wrote:
> 
> Small clarification:
> 
> Hildegard Meier wrote:
>> ps auxww |grep sftp
>> root      4192  0.0  0.1  72304  6512 ?        Ss   11:01   0:00 /usr/sbin/sftpd -D -f /etc/sftpd/sftpd_config
>> root      4590  0.2  0.1  74736  6632 ?        Ss   11:05   0:00 sftpd: sftp_nagios [priv]
>> sftp_na+  4592  0.0  0.0  74736  3432 ?        S    11:05   0:00 sftpd: sftp_nagios at notty
>> sftp_na+  4593  0.0  0.0  74736  3108 ?        Ss   11:05   0:00 sftpd: sftp_nagios at internal-sftp
> 
> 4192 /usr/sbin/sftpd is likely unrelated to OpenSSH.
> I guess that this is a TLS FTP server.
> Try  ps fax  to see process relationships.
> 
> The "sftpd:" prefix for the sshd processes may be related to SELinux;
> nothing in OpenSSH is called sftpd, except the "sftpd_t" SELinux context.
> 
> 
> //Peter
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


More information about the openssh-unix-dev mailing list