My Git repository is VPS,remote hosted.

I fixed the problem which got a message "Access denied".

It was deploy.rb and pageant which caused.
I did below.
1.deploy.rb
set :repository,  "ssh://remote.host.address:22/var/git/#{application}.git"
   ↓
set :repository,
"ssh://[email protected]:22/var/git/#{application}.git" #add
"root@"

2.I found that pagent does not save SSH keys, so added keys.

Then SSH key required and  "Access denied" didn't show.


But... I got an another error "ssh_exchange_identification".

Command prompt messages are below.
-----------------------------------------------------------------------------------
>cap deploy
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote
ssh://[email protected]:22/var/git/project.git HEAD"
  * executing "git clone -q
ssh://[email protected]:22/var/git/project.git
/var/www/project/releases/20090402055505 && cd
/var/www/project/releases/20090402055505 && git checkout -q -b deploy
82594de76a1b6c43505
2a678e4aa13f52d93084a && rm -Rf
/var/www/project/releases/20090402055505/.git && (echo
82594de76a1b6c435052a678e4aa13f52d93084a >
/var/www/project/releases/20090402055505/REVISION)"
    servers: ["remote.host.address"]
    [remote.host.address] executing command
 ** [remote.host.address :: out] ssh_exchange_identification:
Connection closed by remote host #<This is the ploblem.
 ** [remote.host.address :: out] fatal: The remote end hung up unexpectedly
    command finished
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/project/releases/20090402055505; true"
    servers: ["remote.host.address"]
    [remote.host.address] executing command
    command finished
failed: "sh -c \"git clone -q
ssh://[email protected]:22/var/git/project.git
/var/www/project/releases/20090402055505 && cd
/var/www/project/releases/20090402055505 && git checkout -q -b deploy
82594de76a1b6c435
052a678e4aa13f52d93084a && rm -Rf
/var/www/project/releases/20090402055505/.git && (echo
82594de76a1b6c435052a678e4aa13f52d93084a >
/var/www/project/releases/20090402055505/REVISION)\"" on
remote.host.address
-----------------------------------------------------------------------------------
It seemed to be concerned  "/ect/hosts.allow" file,so I added my IP
addres for /ect/hosts.allow, but nothing changed.

Execute "git push origin master" finished without error, so git seems
to be authenticated fine.

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to