Amr, If you are relying on pageant, you don't want to be setting the :keys option in ssh_options. If you specify :keys, Capistrano (or rather, Net::SSH) will try to load those keys up directly, bypassing the agent. If the keys are in pageant, you'll just want to let it do it's thing.
It _should_ just automatically see that pageant is running. If it isn't post again and I can do some more investigating. (Note that I don't really have a windows environment handy for testing these things...so if anyone else is using Capistrano with pageant on a windows box, I'd appreciate any help troubleshooting this.) - Jamis On Jun 5, 2007, at 2:44 PM, Amr Malik wrote: > > Hello, > I already have public key auth working for putty and can login to > the unix system without giving the password. > > I am trying to get my test Cap script to do the same but it asks me > for a password even though I have putty Pageant running. What variable > do I need to set in my Capfile so that it would automatically do the > handshake for me? > > Src: Windows XP (don't ask) > TGT: HP/UX > >> From Putty: > public key auth seems to be setup properly for putty at least. > >> From Capistrano: (2.0) > If I specify the :password, it works fine and I see the output of the > cmdstr > If I specify the ssh_options, it asks me for the password. ie, auto > login no worky! > > My script: > > ========================================== > role :devdb, "hpuxdbserver" > > set :user, "hpuxdbuser" > # set :password, "monkeynyuknyuk" > > # my pub key is d:\ssh\pub_key.pub > # priv key is d:\ssh\priv_key.ppk > > ssh_options[:keys] = %w(d:\ssh\pub_key) > > desc "find out which DB pmon processes are running" > task :ora_running , :role => :devdb do > cmdstr = "ps -ef | grep pmon" > run cmdstr > end > ========================================== > > Any pointers would be greatly appreciated. thanks, > > -A > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
