I'm trying to run the following command:
ssh -i FILENAME.pem ec2-user@ec2-00-000-00-00.eu-west-1.compute.amazonaws.com su --session-command="./update.sh"
I keep getting the error message:
standard in must be a tty
How can I SSH
on to the server then run the file called ./update.sh
?