On Fri, Nov 30, 2012 at 12:00 PM, Devendra Gupta <[email protected]>wrote:
> I have a shell script in which I am doing ssh to several other machies but > the problem is that the hosts require to add a key in the script invoking > machine.. to resolve it I added a swith "-o StrichHostKeyChecking=no" and > now its not asking to add key. But another thing I need to automate is that > passing username password for remote host in the same script so that I do > not need to enter it manually. Please suggest me a way, help guidance would > be highly appreciated. > > Hi Devendra, You can use Expect[1] to automate this. The wikipedia page referred here also contains many examples including your case. [1]: http://en.wikipedia.org/wiki/Expect -Jai > -Devendra > > -- > Mailing list guidelines and other related articles: > http://lug-iitd.org/Footer > -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
