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"