Capistrano git:检查失败的退出状态128 [英] Capistrano git:check failed exit status 128
问题描述
当我运行 cap production git:check
时,我得到了这个。 (我取出了真实的IP地址和用户名)
I got this when I ran cap production git:check
. (I took out my real ip address and user name)
DEBUG [4d1face0] Running /usr/bin/env git ls-remote -h foo@114.215.183.110:~/git/deepot.git on 114.***.***.***
DEBUG [4d1face0] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/deepot/git-ssh.sh /usr/bin/env git ls-remote -h foo@114.***.***.***:~/git/deepot.git )
DEBUG [4d1face0] Error reading response length from authentication socket.
DEBUG [4d1face0] Permission denied (publickey,password).
DEBUG [4d1face0] fatal: The remote end hung up unexpectedly
DEBUG [4d1face0] Finished in 0.715 seconds with exit status 128 (failed).
下面是我的部署文件...
Below is my deploy file...
set :user, 'foo'
set :domain, '114.***.***.***'
set :application, 'deepot'
set :repo_url, 'foo@114.***.***.***:~/git/deepot.git'
set :deploy_to, '/home/#{fetch(:user)}/local/#{fetch(:application)}'
set :linked_files, %w{config/database.yml config/bmap.yml config/cloudinary.yml config/environments/development.rb config/environments/production.rb}
以下是我的production.rb ...
Below is my production.rb...
role :app, %w{foo@114.***.***.***}
role :web, %w{foo@114.***.***.***}
role :db, %w{foo@114.***.***.***}
server '114.***.***.***', user: 'foo', roles: %w{web app}, ssh_options: {keys: %w{/c/Users/Administrator/.ssh/id_rsa}, auth_methods: %w(publickey)}
无需使用git bash即可输入任何密码,我就可以成功地将其登录到 foo @ 114。***。***。***
上。 (我是Windows 7计算机,部署服务器是ubuntu 12.04)。
I can successfully ssh on to my foo@114.***.***.***
without entering any password using git bash. (I am windows 7 machine and deployment server is ubuntu 12.04)
任何帮助将不胜感激。谢谢!
Any help will be appreciated. Thanks!
推荐答案
尝试生成一个新的私钥/公钥,并为其提供密码。如果有效,则问题在于您当前的密钥未使用密码短语。
Try generating a new private/public key par and provide a passphrase for it. If it works, the problem is your current key doesn't use a passphrase.
这篇关于Capistrano git:检查失败的退出状态128的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!