I would like to save the log for OpenSSH client. The manual says that I can use
ssh -y example.com
to turn on logging. Configuration manual says that the default Syslog facility is user; I didn't touch it in /etc/ssh/ssh_config
or ~/.ssh/config
. In addition, my syslog config has
user.* /var/log/user.log;RSYSLOG_TraditionalFileFormat
so I expect to find my SSH logs in /var/log/user.log
. However, I tried ssh -y
, and there’s no “ssh” in that file. I also tried
journalctl -t ssh
It seems to be for sshd, not for the client. Is this expected? Any one made client-side SSH syslog working?
Or is there any more configuration I need to check/add?
I found this question but it’s about server-side logging, and it is about changing the Syslog facility. I don’t care about Syslog facility, as long as there is some log there.