How to send SSH logs to a text file?
by pete.g from LinuxQuestions.org on (#55Q1F)
How do I get the debug logs you get when using the "-vvv" switch with the ssh command "ssh -vvv username@remotehost" redirected to a text file rather than the users screen?
It's very distracting for the user to get all that extra output popping up on their screen whenever using ssh.
I'd like this to be totally transparent to the user, and not asking them to do anything different than what they usually do.
I've tried adding the DEBUG line to ssh_config, but it clutters up their screen with log messages - it doesn't pipe anything to a file.
This is using CentOS 7.7.
Thanks


It's very distracting for the user to get all that extra output popping up on their screen whenever using ssh.
I'd like this to be totally transparent to the user, and not asking them to do anything different than what they usually do.
I've tried adding the DEBUG line to ssh_config, but it clutters up their screen with log messages - it doesn't pipe anything to a file.
This is using CentOS 7.7.
Thanks