ruby on rails 4 - Capistrano git:check failed exit status 128 -
i got when ran cap production git:check
. (i took out real ip address , 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 authentication socket. debug [4d1face0] permission denied (publickey,password). debug [4d1face0] fatal: remote end hung unexpectedly debug [4d1face0] finished in 0.715 seconds exit status 128 (failed).
below 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}
below 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)}
i can ssh on foo@114.***.***.***
without entering password using git bash. (i windows 7 machine , deployment server ubuntu 12.04)
any appreciated. thanks!
try generating new private/public key par , provide passphrase it. if works, problem current key doesn't use passphrase.
Comments
Post a Comment