Hi, I am executing the below ssh command. It requires to run a specific script on the remote host with sudo su. However the first prompt for password comes by fine, however it automatically accepts some value for the second prompt, i.e. for the sudo prompt.
$cat hostlist | while read hostnam; do ssh ashish@$hostnam sudo su -c ./comm1; done [email protected]'s password: Password: Sorry, try again. Password: Sorry, try again. Password: Sorry, try again. sudo: 3 incorrect password attempts How do I make it to wait for my input? Moreover if I run just the command, i.e. without the while loop it runs fine. Regards, Ashish _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
