I am trying to ssh in to another computer, and sudo to another user (root in this case) to perform a copy, but I am getting an error.
sudo: no tty present and no askpass program specified
My command is
ssh testuser@10.39.151.172 'sudo cp ~testuser/file1 /tmp/file1'