Capistrano error when deploying to slicehost

im trying to deploy the application to slicehost using capistrano. I can log in via SSH using the same credentials, however, when I try to deploy it, I get the following error:

  • deploy deployment
  • executing `deploy: update '** deal: start
  • Running `deploy: update_code 'Updating the cached check on all servers is done locally:" git ls-remote git @ git.assembla.com: xxx.git master "
  • execution "if [-d / home / sdn / shared / cached-copy], then cd / home / xxx / shared / cached-copy & git fetch -q origin & <w22> reset -q --hard 910a97024a45f1304d6b50c8862605ea0f1cf829 & < w22> clean -q -d -x -f; else git clone -q git @ git.assembla.com: xxx.git / home / xxx / shared / cached-copy && cd / home / xxx / shared / cached-copy & <w22> checkout -q -b deploy 910a97024a45f1304d6b50c8862605ea0f1cf829; fi "servers: [" 173.203.79.208 "] *** [deploy: update_code] rollback
  • executing "rm -rf / home / xxx / releases / 20100506160548; true" servers: ["173.203.79.208"] Exception ** [deploy: update_code] on rollback: Capistrano :: ConnectionError, connection failed for: 173.203.79.208 ( Net :: SSH :: Disconnect: connection closed by the remote host) connection failed: 173.203.79.208 (Net :: SSH :: Disconnect: connection closed by the remote host)

What am I doing wrong? Is there anything I need to add to my deploy.rb file to make it work with slicehost?

+3
source share
3 answers

Slicehost git? git SSH-, ssh git.

, , , - git . "(Net:: SSH:: Disconnect: )" .

+1

.

railsu@li:~/.ssh$ ls
authorized_keys

.ssh railsu git. .

, .

+1

, , SSH.

, SSH- . , , git.

ssh_options[:forward_agent] = true capistrano ~/.ssh/config :

Host <name>
  HostName <ip or host>
  User <username>
  IdentityFile ~/.ssh/<filename>
  ForwardAgent yes

I prefer a later version.

There is a very detailed guide to forwarding an SSH agent to www.unixwiz.net

0
source

Source: https://habr.com/ru/post/1744372/


All Articles