利用Cisco AnyConnect VPN连接,capistrano部署脚本失败

我是capistrano的新手,尝试运行脚本将源代码部署到与VPN连接的QA服务器。 testing脚本在我的'Git bash'壳在Windows机器。 我在连接github时没有问题,如下所示。

 $ ssh -T [email protected]
嗨jkjunguser! 您已成功通过身份validation,但GitHub不提供sh
访问权限

使用Cisco ANyConnect v2.5build立与客户端networking的VPN连接。 testing从本地shell到目标服务器的SSH连接,并成功。 还testing了目标服务器的github连接,并没有问题。

但是,当我运行部署脚本,我得到“错误读取来自authentication套接字的响应长度。” 错误如下。

 $ cap qa部署
   *?[32m2013-05-30 13:53:16执行`qa'?[0m
   *?[32m2013-05-30 13:53:16执行`deploy'?[0m
   *?[32m2013-05-30 13:53:16执行`deploy:update'?[0m
  **交易:开始
   *?[32m2013-05-30 13:53:16执行`deploy:update_code'?[0m
    更新所有服务器上的caching结帐
     ?[33本地执行:“git ls-remote [email protected]:cleanShot / client-ph
 ase2.git master“?[0m
     ?[2; 37?命令在7293ms?完成?
   *?[33mexecuting“if [-d /home/web/qa.client.com/shared/cached-copy];然后
 cd /home/web/qa.client.com/shared/cached-copy && git fetch -q origin && git fet
 ch --tags -q origin && git reset -q --hard b0f37d41f5d8aa5716986725d1c72142536af
 8d2 && git clean -q -d -x -f; 否则git clone -q -b master [email protected]:cleanShot
 /client-phase2.git /home/web/qa.client.com/shared/cached-copy && cd / home /
 web / qa.client.com / shared / cached-copy && git checkout -q -b deploy b0f37d41f5d8a
 a5716986725d1c72142536af8d2; networking连接“?[0米
    服务器:[“10.33.XX.XXX”]
密码:
     [10.33.XX.XXX]执行命令
  ** [10.33.XX.XXX :: err]从authenticationsock读取响应长度时出错
等。
  ** [10.33.XX.XXX :: err]错误:找不到存储库。
  ** [10.33.XX.XXX :: err]致命:远端意外挂断
     ?[2; 37?m命令在2217ms结束?
 *** [?[34mdeploy:update_code?[0m]?[34mrolling back?[0m
   *?[33mexecuting“rm -rf /home/web/qa.client.com/releases/20130530015346; tru
 E“?[0米
    服务器:[“10.33.XX.XXX”]
     [10.33.XX.XXX]执行命令
     ?[2; 37?命令完成在522ms?[0m
失败:“sh -c”if [-d /home/web/qa.client.com/shared/cached-copy];然后cd /
 home / web / qa.client.com / shared / cached-copy && git fetch -q origin && git fetch  - 
 -tags -q origin && git reset -q --hard b0f37d41f5d8aa5716986725d1c72142536af8d2
 && git clean -q -d -x -f; 否则git clone -q -b master [email protected]:company /
 client-phase2.git /home/web/qa.client.com/shared/cached-copy && cd / home / web /
 qa.client.com/shared/cached-copy && git checkout -q -b deploy b0f37d41f5d8aa571
 6986725d1c72142536af8d2;  fi“在10.33.XX.XXX上 

下面是使用的部署脚本。 [deploy.rb]

 set:repository,“[email protected]:cleanShot / client-phase2.git”
设置:scm,:git
设置:分支,提取(:分支,“主”)

设置:use_sudo,false

设置:normalize_asset_timestamps,false

 ssh_options [:forward_agent] = true

任务:qa做

    设置:用户,“networking”
    设置:应用程序,“qa.basspro.com”
     set:deploy_to,“/ home / web /#{application}”
    设置:deploy_via,:remote_cache
     set:current_path,“#{deploy_to} / current”
     set:releases_path,“#{deploy_to} / releases /”
    设置为:shared_pa​​th,“#{deploy_to} / shared /”
    angular色:web,“10.33.88.101”

结束
在'deploy:update'之后:update_permission

如果这个“从authentication套接字错误读取响应长度”有任何治疗。 错误会很好。 请给我任何有用的build议。 我很乐意尝试任何build议。