Image

Anwesha Das: ssh version output in stderr

Generally Linux commands print their version onstdout, for example
git --versionorpython --version. But notssh.ssh -Vprints output tostderr.

To test it you can do the following:

git version on stdout

> git --version 2> error 1> output > cat output git version 2.51.0

ssh version on stderr

> ssh -V 2>> error 1>> output > cat error OpenSSH_9.9p1, OpenSSL 3.2.4 11 Feb 2025

Hope this will be helpful.

http://anweshadas.in/ssh-version-output-in-stderr/