I am sshing into a remote machine and running a command there using sudo. I am using tt for TTY connection. I want to get the output (the console logs) of the command that I am running in my local machine. How can I do that?
ssh -i keyfile -tt user_name@$web_ip "sudo p.sh"
ssh -i keyfile -tt user_name@$web_ip "sudo p.sh"
in my local machine.p.sh
is getting executed on the remote. I want to direct the logs of p.sh in my local machine. – user2851669 Nov 29 '16 at 03:57