I‘m trying to run the following command:
ssh user@box.example.com sudo command1 /path/to/file
But It give me an error which read as follows:
sudo: sorry, you must have a tty to run sudo
How do I fix this problem?
{ 4 comments }
by nixCraft on August 8, 2007 · 4 comments
I‘m trying to run the following command:
ssh user@box.example.com sudo command1 /path/to/file
But It give me an error which read as follows:
sudo: sorry, you must have a tty to run sudo
How do I fix this problem?
{ 4 comments }
