I'm using below command to ssh from linux to windows server and run a client specific task which gives around 10-15 lines of output. Below command is giving correct output but only 5-6 lines of output only coming.
output=$(ssh -t username@ip 'command on')
echo $output
I tried tee log to pass the output to log file as well but still few lines of output only showing. Can anyone help me regarding this. Thanks.