I am attempting to check the output of running the command "ssh -T git@github.com"
The output should look like:
Hi xyz! You've successfully authenticated, but GitHub does not provide shell access.
However, I am unable to capture this output. Where is this text coming from and how can I access it so I can test against it?
Piping the output or writing to a file yields no results.
ssh -T git@github.com | grep "successful"
Grep here receives no input.