title: rails capistrano deployment error
body: <p>I have installed capistrano with <code>gem capistrano</code></p>
  
  <p>And in my application directory i installed <code>cap install</code></p>
  
  <p>This command includes <code>deploy/production.rb</code> and <code>deploy/staging.rb</code> and in <code>config/deploy.rb</code></p>
  
  <p>my <code>production.rb</code> file has following</p>
  
  <pre><code>set :stage, :production
  role :all, %w{seting@mydomain.com}
  server 'sub.mydomain.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
  set :ssh_options, { :forward_agent =&gt; true, :port =&gt; 1754, :keys =&gt; %w(/home/seting/.ssh/id_rsa) }
  </code></pre>
  
  <p>And this is my deploy.rb</p>
  
  <pre><code>set :application, 'admin'
  set :repo_url, 'git@bitbucket.org:username/myadmin.git'
  namespace :deploy do
  
    desc 'Restart application'
    task :restart do
      on roles(:app), in: :sequence, wait: 5 do
        # Your restart mechanism here, for example:
        # execute :touch, release_path.join('tmp/restart.txt')
      end
    end
  
    after :restart, :clear_cache do
      on roles(:web), in: :groups, limit: 3, wait: 10 do
        # Here we can do anything such as:
        # within release_path do
        #   execute :rake, 'cache:clear'
        # end
      end
    end
  
    after :finishing, 'deploy:cleanup'
  
  end
  </code></pre>
  
  <p>And finally when i run <code>cap production deploy</code></p>
  
  <p>Getting errors as </p>
  
  <pre><code>cap aborted!
  seting
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/sshkit-1.0.0/lib/sshkit/backends/netssh.rb:156:in `ssh'
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/sshkit-1.0.0/lib/sshkit/backends/netssh.rb:68:in `upload!'
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/capistrano-3.0.0/lib/capistrano/tasks/git.rake:11:in `block (3 levels) in &lt;top (required)&gt;'
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/sshkit-1.0.0/lib/sshkit/backends/netssh.rb:42:in `instance_exec'
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/sshkit-1.0.0/lib/sshkit/backends/netssh.rb:42:in `run'
  /home/seting/.rvm/gems/ruby-2.0.0-p247/gems/sshkit-1.0.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
  Tasks: TOP =&gt; git:check =&gt; git:wrapper
  (See full trace by running task with --trace)
  </code></pre>
  
  <p><strong>Edit - 1</strong></p>
  
  <p>In addition i didn't do any special installations in my server to run rails application. I have decided to move my file to server first. Is it right way?</p>