@Devendra, on this mailing list, the custom is to bottom-post. That means writing your response to an email BELOW what you are quoting and not above (which is called top-posting). Kindly adhere to the etiquette. Thanks!
> I have more than 200 machines in my network running linux and I want to be > able to ssh to each one of them using thier IP address stored in a file and > then run some commands inside each machine, log out and log in the next > machine in the list and do the same, so on ... > > Now, using key-gen is not practical for me and I do not want to install the > "expect" utility due to some reason. If I understand your predicament, the only inconvenient aspect of using key-gen is perhaps installing the key on each machine. I hope it is clear that once you do generate the key (which will work for all 200+ machines), the remote-logging-and-executing-some-commands bit is trivial. You can probably use the "expect" method (I don't know much about it but I can guess) to install the key and then uninstall expect. > Please tell me if there is any way to supply ssh password using bash > scripting? I know supplying the password in script might not be very secure, > but still I want to do it this way. I would imagine that expect does exactly what you are asking.. supply password using bash scripting. I am not aware of any straight-forward method, at least nothing that wouldn't require you to right your own 'expect' like tool. Good luck! -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
