If I execute the plink command
plink user@192.168.1.12 sudo nano /etc/hosts
Upon typing the password when prompted, I am getting
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry,try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
How to execute the sudo command
from plink
? Or is there any alternatives?