ssh version output in stderr

Generally Linux commands print their version on stdout , for example git --version or python --version . But not ssh . ssh -V prints output to stderr . To test it you can do the following: git version on stdout > git --version 2> error 1> output > cat output git version