I've tried tons of ways:
ssh -V > file.txt
ssh -V &> file.txt
ssh -V 2> file.txt
$(ssh -V) > file.txt
$(ssh -V) &> file.txt
file.txt <<< $(ssh -V)
And with shell substitution with variables as well. But every time the output is shown on screen.
I've tried tons of ways:
ssh -V > file.txt
ssh -V &> file.txt
ssh -V 2> file.txt
$(ssh -V) > file.txt
$(ssh -V) &> file.txt
file.txt <<< $(ssh -V)
And with shell substitution with variables as well. But every time the output is shown on screen.