I'm running a bash script to execute a command on a remote host. Here is the command:
ssh ppuser@10.101.5.91 "sudo mv /tmp/$2.tar.gz $1"
$1
and $2
are command line arguments. But while executing I'm getting this error : no tty present and no askpass program specified.
Hope you will help me, any help would be greatly appreciated. Thank You.