From: Michael M. <mic...@ya...> - 2006-09-07 11:18:21
|
Roland, I never got the keys to work going from a PC to a HP-UX system. I use keys from my Unix workstation to my Unix servers. I had started this for other reasons as well. Also I explicitly stated that storing the password in the script is not a good idea and that prompting for it was preferred.. I just haven't gotten to that point as I was stuck with just getting it all to work. Michael Roland Giersig <rgi...@cp...> wrote: How about just properly configuring ssh (authorized_keys) and sudo (:NOPASSWD) and directly doing a "ssh user@remotehost sudo command" ?! You see, no need for expect here, and especially no need for storing passwords in the clear inside some scripts... Regards, Roland Check on my new web site. Be kind as I'm working to add and update it as I go: http://www.grundyec.net/~mrmonteith/ --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. |