Article 55Q1F How to send SSH logs to a text file?

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.

Thankslatest?d=yIl2AUoC8zA latest?i=KHmGtOQ8jtQ:muk7P6NJgmk:F7zBnMy latest?i=KHmGtOQ8jtQ:muk7P6NJgmk:V_sGLiP latest?d=qj6IDK7rITs latest?i=KHmGtOQ8jtQ:muk7P6NJgmk:gIN9vFwKHmGtOQ8jtQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments