I'm not familiar with a windows installation, since Net::SSH is a pure-ruby
implementation of an SSH client, there shouldn't be one required.... if you
are deploying *to* windows that isn't going to work very well for you...
looking at the logs, you aren't entering a valid password for the target
computer, that is more of a configuration issue, if the remote host is
Windows based, running an open SSH server, then you need to ensure you can
SSH to it manually, you can read an example of how to test that using
Net::SSH here: http://net-ssh.rubyforge.org/ssh/v2/api/index.html -
-- Lee

2009/3/30 Masuda <msd....@gmail.com>

>
> Thanks for reply.
>
> > Di you have an SSH key, and is it at %w(~/.ssh/id_rsa.pub) ?
> Yes I have a SSH key but I made a mistake.
> It is at "~/.ssh/authorized_key"
> so I collected it %w(~/.ssh/authorized_keys).
>
> > What SSH client are you using ?
> I thought that no SSH client needed, so just command prompt only.
> And then I did deploy command with Pagent.
>
> Command prompt are 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/20090330213903; true"
>    servers: ["remote.host.address"]
>  ** [deploy:update_code] exception while rolling back:
> Capistrano::ConnectionError, connection failed for:
> remote.host.address (TypeError: can't convert nil into String)
> c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/capistrano/recipes/
> deploy/scm/git.rb:224:in `query_revision': Unable to resolve revision
> for 'HEAD' on repository 'ssh://remote.host.address:22/var/git/si
> s.git'. (RuntimeError)
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:35:in `send'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:63:in `local'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/recipes/deploy.rb:37:in `load'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/configuration/variables.rb:87:in `call'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/configuration/variables.rb:87:in `fetch'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/configuration/variables.rb:110:in `protect'
>         ... 38 levels...
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
> capistrano/cli/execute.rb:14:in `execute'
>        from c:/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/bin/cap:4
>        from c:/ruby/bin/cap:19:in `load'
>        from c:/ruby/bin/cap:19
>
> -----------------------------------------------------------------------------------------------------------------------------
>
> Password requirements without Windows login name, Password:,
> disappeared.
> But yet it requires password for Windows login user name and new
> errors occurred.
> I have no idea.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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