title: Capistrano deploy configuration
body: <p>Help please to configure capistrano for deployment.
  I have ssh:</p>
  
  <ul>
  <li>user: User </li>
  <li>host: 8.8.8.8:6554</li>
  <li>pass: 123</li>
  </ul>
  
  <p>Then i have bitbucket repository git@bitbucket.org:somerepo/code.git</p>
  
  <ul>
  <li>user: Repouser@gmail.com</li>
  <li>pass: repopass</li>
  </ul>
  
  <p>I am just need to deploy code from default branch to User@8.8.8.8:8888:/public_html/test/ . On local machine i have ssh key, that allows me to connect without password. But capistrano didn't connect.</p>
  
  <p>There is my config:</p>
  
  <pre><code>lock '3.3.5'
  set :application, 'App'
  set :scm, :git
  set :repo_url, 'git@bitbucket.org:somerepo/code.git'
  set :scm_passphrase, ""
  set :scm_user, "Repouser@gmail.com"
  set :user, 'User'
  set :deploy_to, '/public_html/test'
  set :app_dir, "/public_html/test"
  set :ssh_options, {:forward_agent =&gt; true}
  role :web, '8.8.8.8:6554'
  
  namespace :deploy do
    after :restart, :clear_cache do
      on roles(:web), in: :groups, limit: 3, wait: 10 do
      end
    end
  end
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>connection closed by remote host
    ** Invoke deploy:failed (first_time)
    ** Execute deploy:failed</p>
  </blockquote>