title: Capistrano deployment failed
body: <p>Got the following error while trying to <code>cap deploy:setup</code>. It's like it failed to upload the database.yml file via sftp. I googled everywhere but had no solution. Not even a bit.</p>
  
  <blockquote>
    <p><em>*</em> upload via sftp failed on xxx.xxx.xxx.xxx: Net::SFTP::StatusException (Net::SFTP::StatusException open /var/www/domain.com/username/shared/config/database.yml (3, "permission denied"))
    upload via sftp failed on xxx.xxx.xxx.xxx: Net::SFTP::StatusException (Net::SFTP::StatusException open /var/www/domain.com/username/shared/config/database.yml (3, "permission denied"))</p>
  </blockquote>