I'm trying the following command:
ssh -A user@server 'bash -s' < mylocalscript.sh
But get the annoying sudo: no tty present and no askpass program specified
when the script reaches a sudo
. According to man ssh
, -A
is supposed to forward local authentication, so it should be able to use sudo
on the remote server..
What am I doing wrong/not understanding..?