You have to run your ssh command as follows to avoid error that read as sudo: Sorry, you must have a tty to run sudo Error:
ssh -t hostname sudo command ssh -t user@hostname sudo command ssh -t user@box.example.com sudo command1 /path/to/file
You have to run your ssh command as follows to avoid error that read as sudo: Sorry, you must have a tty to run sudo Error:
ssh -t hostname sudo command ssh -t user@hostname sudo command ssh -t user@box.example.com sudo command1 /path/to/file