【问题标题】:Capistrano git:check failed exit status 128Capistrano git:检查失败的退出状态 128
【发布时间】:2023-03-05 09:56:01
【问题描述】:

我在运行cap production git:check 时得到了这个。 (我拿出了我的真实IP地址和用户名)

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).

下面是我的部署文件...

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

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 输入任何密码的情况下成功 ssh 到我的 foo@114.***.***.***。 (我是windows 7机器,部署服务器是ubuntu 12.04)

任何帮助将不胜感激。谢谢!

【问题讨论】:

    标签: ruby-on-rails-4 capistrano


    【解决方案1】:

    尝试生成新的私钥/公钥 par 并为其提供密码。如果有效,则问题是您当前的密钥未使用密码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多