Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy did I have to upload my private key to my server to get Capistrano to work with GitHub?
    text
    copied!<p>From what I've read, including <a href="http://help.github.com/deploy-with-capistrano/" rel="nofollow">this article</a> on GitHub itself, by using ssh agent forwarding, I should not have needed to upload my private id_rsa key to my server in order for Capistrano to connect to GitHub. Yet, until I uploaded it, cap deploy would fail trying to pull from GitHub saying "Permission denied (publickey)".</p> <p>A little about my setup: My server is a shared Dreamhost server. I'm on Windows using the mysysgit Git Bash as my CLI. I previously set up passwordless ssh login to the Dreamhost server by copying my public key to authorized_keys. I can push to GitHub from my dev. Another symptom was that I could ssh into GitHub from my box, but from the server it gave the same error as above. That tipped me off about uploading my private key to resolve the issue. But it shouldn't have been necessary as I understand it.</p> <p>Here's my deploy.rb:</p> <pre><code>default_run_options[:pty] = true set :domain, "myactualdomain" set :user, "myusernameeverywhere" # source set :scm, :git set :repository, "git@github.com:#{user}/#{myreponame}.git" set :branch, "master" ssh_options[:forward_agent] = true set :deploy_via, :remote_cache set :scm_verbose, true # deployment set :use_sudo, false set :deploy_to, "/home/#{user}/#{domain}" role :web, "#{domain}" role :app, "#{domain}" role :db, "#{domain}", :primary =&gt; true </code></pre> <p>Why did I have to upload my private key? Is there a way to handle this where that isn't necessary?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload