I have been using Symfony2 application without problems for several weeks using Capifony. The other day, I run a cap and nothing works. I did not change any keys or, in vain, changed any other settings.
I am deploying bitbucket from my repository.
I checked access rights and property rights everywhere.
/ var / git /. ssh / authorized_keys permissions 600 git users
/ var / git /. ssh / known_hosts permissions 640 user git
/ var / git /. ssh / config permissions of 700 git users:
Host bitbucket.org
Hostname bitbucket.org
ForwardAgent yes
ForwardX11 no
User git
IdentityFile /var/git/.ssh/bitbucket_rsa
I can log in with the same public key on the bitpack from my local machine to the production server. I tried another key.
ruby (1.9.3). Capifony 2.4.2 (2.4.0 Capistrano 2.15.5).
.
deploy.rb:
set :repository, "git@bitbucket.org:username/example.git"
set :scm, :git
ssh_options[:forward_agent] = true
ssh_options[:verbose] = :debug
ssh_options[:keys] = %w(/var/git/.ssh/bitbucket_rsa)
:
* ←[32m2014-02-04 09:20:30 executing `deploy:check'←[0m
* ←[33mexecuting "test -d /var/www/vhosts/example.com/releases"←[0m
servers: ["example.com"] D,
[2014-02-04T09:20:30.140652 #11708] DEBUG -- net.ssh.transport.session[15bfe8c]:
establishing connection to example.com:22
D, [2014-02-04T09:20:30.320662
connection established
I, [2014-02-04T09:20:30.320662
[15bf274]: negotiating protocol version
D, [2014-02-04T09:20:30.469671
[15bf274]: remote is `SSH-2.0-OpenSSH_5.3'
D, [2014-02-04T09:20:30.470671
[15bf274]: local is `SSH-2.0-Ruby/Net::SSH_2.8.0 i386-mingw32'
D, [2014-02-04T09:20:30.530674
D, [2014-02-04T09:20:30.530674
0 type 20 len 780
I, [2014-02-04T09:20:30.530674
got KEXINIT from server
I, [2014-02-04T09:20:30.530674
sending KEXINIT
D, [2014-02-04T09:20:30.531675
0 type 20 len 1620
D, [2014-02-04T09:20:30.531675
I, [2014-02-04T09:20:30.531675
negotiating algorithms
D, [2014-02-04T09:20:30.531675
negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
D, [2014-02-04T09:20:30.532675
exchanging keys
D, [2014-02-04T09:20:30.532675
1 type 34 len 20
D, [2014-02-04T09:20:30.532675
D, [2014-02-04T09:20:30.652681
D, [2014-02-04T09:20:30.652681
packet nr 1 type 31 len 148
D, [2014-02-04T09:20:31.893752
2 type 32 len 140
D, [2014-02-04T09:20:31.893752
D, [2014-02-04T09:20:31.964757
D, [2014-02-04T09:20:31.964757
2 type 33 len 700
D, [2014-02-04T09:20:31.968757
3 type 21 len 20
D, [2014-02-04T09:20:31.968757
D, [2014-02-04T09:20:31.968757
3 type 21 len 12
D, [2014-02-04T09:20:31.969757
net.ssh.authentication.session[15647f4]: beginning authentication of `git'
D, [2014-02-04T09:20:31.969757
4 type 5 len 28
D, [2014-02-04T09:20:31.969757
D, [2014-02-04T09:20:32.129766
D, [2014-02-04T09:20:32.129766
4 type 6 len 28
D, [2014-02-04T09:20:32.129766
net.ssh.authentication.session[15647f4]: trying none
D, [2014-02-04T09:20:32.130766
5 type 50 len 44
D, [2014-02-04T09:20:32.130766
D, [2014-02-04T09:20:32.290775
D, [2014-02-04T09:20:32.290775
5 type 51 len 60
D, [2014-02-04T09:20:32.290775
net.ssh.authentication.session[15647f4]: allowed methods: publickey,gssapi-
keyex,gssapi-with-mic,password
D, [2014-02-04T09:20:32.291775
net.ssh.authentication.methods.none[156bb14]: none failed
D, [2014-02-04T09:20:32.291775
net.ssh.authentication.session[15647f4]: trying publickey
D, [2014-02-04T09:20:32.291775
connecting to ssh-agent
E, [2014-02-04T09:20:32.292775
could not connect to ssh-agent
D, [2014-02-04T09:20:32.292775
net.ssh.authentication.session[15647f4]: trying password
E, [2014-02-04T09:20:32.292775
net.ssh.authentication.session[15647f4]: all authorization methods failed (tried none,
publickey, password)
connection failed for: example.com (Net::SSH::AuthenticationFailed: Authentication
failed for user git@example.com)
? , .
.