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.

Command prompt is below.
--------------------------------------------------------------------------------------------------------------------------------
C:\Users\WindowsLoginName\Project\project\src>cap deploy
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote 
ssh://remote.host.address:22/var/git/project.git
HEAD"
windowsloginn...@remote.host.address's password:
Permission denied, please try again.
windowsloginn...@remote.host.address's password:
Permission denied, please try again.
windowsloginn...@remote.host.address's password:
Permission denied (publickey,gssapi-with-mic,password).
fatal: The remote end hung up unexpectedly
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/project/releases/20090330082824; true"
    servers: ["remote.host.address"]
Password:
    [remote.host.address] executing command
    command finished
--------------------------------------------------------------------------------------------------------------------------------

deploy.rb is below.
--------------------------------------------------------------------------------------------------------------------------------
set :application, "app"
set :repository,"ssh://remote.host.address:22/var/git/#
{application}.git"
set :deploy_to, "/var/www/#{application}"
set :scm, :git
set :user, "root"
set :runner, "root"
role :app, "remote.host.address"
role :web, "remote.host.address"
role :db,  "remote.host.address", :primary => true
ssh_options[:keys] = %w(~/.ssh/id_rsa.pub)
ssh_options[:port] = 22
ssh_options[:forward_agent] = true
--------------------------------------------------------------------------------------------------------------------------------

I'm trying these 3days but I can't yet...
Please give me advice!!

I'm not good at english because I'm Japanese.
So, please be patient with me.
Regards.

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
capistrano-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to