Score:1

How do I log to both console and log file with OpenSSH sshd?

mx flag

Due to some circumstances we need to log OpenSSH sshd output to console, but we would also want to be able to log it to file. This would be something like running sshd -e -E /path/to/file.log .... However, it seems as if -E is overriding, so if used, it will not log to console.

Is it possible to configure sshd to do both at the same time?
BR
Patrik

Score:1
mu flag

Log to syslog. Your log server can be configured to send output to both console and a file.

patrik avatar
mx flag
In our case this is not really possible, as we do not have sudo on the host. We start an sshd session to be able to do file transfer to a local temporary SFTP server.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.