Masuda wrote:
> Hi,there.
> I'm trying to deploy with Capistrano 2.5.5 and git.
> But when using "cap deploy" command, server requires password for
> Windows login user name, permission denied and tries to roll back.
> I set ssh public key and deploy.rb with ssh_options.
>
>
I guess you want to setup passwordless login from a windows computer to
any ssh server.
Here's how to go about it:
Get the id_rsa.* files for your keys and copy them to /Documents and
Settings/<username>/.ssh
Be advised that there is no way to create a .ssh (watch the '.' at the
start) from windows explorer, you will have to open a command window and
use mkdir.
The key in you id_rsa.pub should be added to the authorized keys file of
your server.
I initially had a bit of trouble getting cap to see the keys so I had to
add a couple of lines in my capfile. Also because it's for work I use a
different pair of keys than privately so I renamed the _rsa files:
ssh_options[:paranoid] = false
if File.exists?("#{ENV["USERPROFILE"]}/.ssh/other_rsa")
ssh_options[:keys] = "#{ENV["USERPROFILE"]}/.ssh/other_rsa"
end
ssh_options[:forward_agent] = true
Cheers,
V.-
--
http://www.braveworld.net/riva
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---