I went way down that road of trying various command line approaches. Once I got all the ssh-agent forwarding stuff working with the manual tests shown at http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/ I thought I would be good to go, but it always failed under Capistrano. I'm thinking that there's a fundamental difference in the Ruby implementation for Windows itself, since I can get the identical configuration to work under Cygwin. I don't have the Windows environment set up any more to test your code.
About Cygwin, I installed the minimum number of packages, just the defaults plus Ruby and OpenSSH. I didn't install any Windows services, since they're not needed for deploying using Capistrano. Unless I'm missing something, the only time it uses any system resource (beside disk space) is when I'm running something from the Cygwin command line. I don't use it for my local testing environment. On Thursday, March 6, 2014 1:47:28 PM UTC-6, Everett Carney wrote: > > I've been toying around with Capistrano 3 on Windows and ran into a bunch > of authentication issues. I'm trying to avoid Cygwin because it puts a > noticeable strain on the OS but that might be the only solution. Out of > curiosity, did you try running things through the command line, > Powershell, GIT Bash, and Putty? I haven't had any luck with that but I'm > very new to this kind of deployment method so I could be doing something > wrong. I was hitting this: > > C:\Sites\blog_app>cap production deploy:setup_config DL is deprecated, please > use Fiddle DEBUG [6c7f43b1] Running /usr/bin/env [ ! -d > /usr/local/rbenv/versions/2.0.0-p24 7 ] on dnsname.cloudapp.net DEBUG > [6c7f43b1] Command: [ ! -d /usr/local/rbenv/versions/2.0.0-p247 ] cap > aborted! Authentication failed for user [email protected] >> >> When I found this potential work-around but wasn't able to get it to > work. If you have a minute to try it through the command line I'd be curios > to see if you could get it up and running (without Cygwin) > > set :ssh_options, { keys: ["#{ENV['USERPROFILE']}/.ssh/id_rsa.pub"] } > > > > > On Tuesday, February 18, 2014 8:39:39 AM UTC-8, Doug Lauver wrote: >> >> I tried a different approach and got Capistrano working under Cygwin, so >>>> their handling of OpenSSH and Net::SSH must be different than the >>>> (several) >>>> native Windows applications that I tried. Now I can finally start learning >>>> Capistrano itself. >>> >>> -- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/83b1edab-8913-4643-b92d-bd48104b3696%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
