Thanks for your response. I thought I had solved the ssh agent issue since 
I got everything working consistently from the command line using msysgit 
instead of Putty. It's probably time for a Mac.

Doug


On Monday, February 17, 2014 3:13:28 PM UTC-6, Lee Hambley wrote:
>
> A cursory Google search shows that this is a problem with the ssh agent 
> (`Error 
> reading response length from authentication socket.`), it might be an 
> issue with Putty (no idea, haven't touched a windows PC since Macs have 
> been made of Aluminium!) or with some versions of Net::SSH, you might try 
> their Github issue tracker.
>
> Capistrano (and by extension SSHKit) are just wrappers around Net::SSH, 
> which should work on Windows, but has literally never been tested.
>
> Lee Hambley
> --
> http://lee.hambley.name/
> +49 (0) 170 298 5667
>
>
> On 17 February 2014 22:07, Doug Lauver <[email protected] 
> <javascript:>>wrote:
>
>> I've seen other discussion about the differences between running in an 
>> SSH session and Capistrano (
>> http://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/),
>>  
>> but I haven't been able to figure out why Capistrano is not able to access 
>> GitHub from my remote server. I can access it fine using agent forwarding 
>> in a shell session (results below), and all the recommended SSH session 
>> tests pass. Any help is appreciated!
>>
>> On the server, the .bash_profile file contains:
>>
>> umask 002
>> PS1='[\h]$ '
>> export PATH=/usr/local/php54/bin:$PATH
>>
>> The .bashrc file is empty.
>>
>>
>> Versions:
>>
>>    - Ruby 1.9.3p231
>>    - Capistrano 3.1
>>    - Rake / Rails / etc 
>>
>> Platform:
>>
>>    - Working on.... Windows
>>    - Deploying to... Linux 3.2.45-grsec-2.9.1-r3+ (shared host)
>>
>> Logs:
>>
>> (Sanitized)
>>
>> *Result of cap staging git:check*
>>
>>   [34mINFO [0m [ [32m3422c4a2 [0m] Running [33m [1m/usr/bin/env mkdir -p 
>> /home/username/tmp/capistrano/cap-win-clean/ [0m [0m on [
>> 34mkindofsocial.net [0m
>>  [30mDEBUG [0m [ [32m3422c4a2 [0m] Command: [34m/usr/bin/env mkdir -p 
>> /home/username/tmp/capistrano/cap-win-clean/ [0m
>>   [34mINFO [0m [ [32m3422c4a2 [0m] Finished in 1.259 seconds with exit 
>> status 0 ( [1m [32msuccessful [0m [0m).
>>  [30mDEBUG [0m Uploading 
>> /home/username/tmp/capistrano/cap-win-clean/git-ssh.sh 0.0%
>>   [34mINFO [0m Uploading 
>> /home/username/tmp/capistrano/cap-win-clean/git-ssh.sh 100.0%
>>   [34mINFO [0m [ [32m0f1968d4 [0m] Running [33m [1m/usr/bin/env chmod +x 
>> /home/username/tmp/capistrano/cap-win-clean/git-ssh.sh [0m [0m on [
>> 34mmyserver.com [0m
>>  [30mDEBUG [0m [ [32m0f1968d4 [0m] Command: [34m/usr/bin/env chmod +x 
>> /home/username/tmp/capistrano/cap-win-clean/git-ssh.sh [0m
>>   [34mINFO [0m [ [32m0f1968d4 [0m] Finished in 0.245 seconds with exit 
>> status 0 ( [1m [32msuccessful [0m [0m).
>>  [30mDEBUG [0m [ [32md1bedc90 [0m] Running [33m [1m/usr/bin/env git 
>> ls-remote [email protected]:kosocial/cap-win-clean.git [0m [0m on [
>> 34mmyserver.com [0m
>> [30mDEBUG [0m [ [32md1bedc90 [0m] Command: [34m( GIT_ASKPASS=/bin/echo 
>> GIT_SSH=/home/username/tmp/capistrano/cap-win-clean/git-ssh.sh /usr/bin/env 
>> git ls-remote [email protected]:kosocial/cap-win-clean.git ) [0m
>> [30mDEBUG [0m [ [32md1bedc90 [0m] [31m Error reading response length 
>> from authentication socket. [0m [30mDEBUG [0m [ [32md1bedc90 [0m] [31m 
>> Permission 
>> denied (publickey). [0m [30mDEBUG [0m [ [32md1bedc90 [0m] [31m fatal: 
>> The remote end hung up unexpectedly
>>  [0m [30mDEBUG [0m [ [32md1bedc90 [0m] Finished in 1.190 seconds with 
>> exit status 128 ( [1m [31mfailed [0m [0m).
>>
>>
>> *Result of SSH session agent forwarding connecting to github*
>>
>> ssh -A [email protected] <javascript:> 'git ls-remote 
>> [email protected]:kosocial/cap-win-clean.git'
>> 2a98e472fbb5ce902eea90f4531146792aead6e9 HEAD
>> 2a98e472fbb5ce902eea90f4531146792aead6e9 refs/heads/master
>>
>> Files:
>>
>>    - Capfile 
>>
>> # Load DSL and Setup Up Stages
>> require 'capistrano/setup'
>> # Includes default deployment tasks
>> require 'capistrano/deploy'
>> Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
>>
>>
>>    - deploy.rb
>>
>> lock '3.1.0'
>> set :application, 'cap-win-clean'
>> set :repo_url, '[email protected]:kosocial/cap-win-clean.git'
>>
>>    - 
>>    - Stage files (production.rb, staging.rb)
>>
>> staging.rb
>>
>> server 'myserver.com', user: 'username', roles: :all
>> set :deploy_to, '/home/username/staging/cap-win-clean'
>> set :tmp_dir, '/home/user/tmp/capistrano'
>> set :ssh_options, {
>>   forward_agent: true
>> }
>>
>>  -- 
>> 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] <javascript:>.
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/capistrano/d77eb750-0e53-4e13-9fce-1efd99b6d53c%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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/a607d8fc-4767-46a6-bf48-5c931ee425f9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to