I am trying to ssh into a remote machine and run a script. This script has an interactive confirmation: "Do you want to run it? {Y/N} " kind of thing. How can I say "Y" to this directly through the ssh command?
out=$(sshpass -p "abc" ssh -o StrictHostKeyChecking=no -l root x.x.x.x "./abc.py")