I'm trying to deploy a PHP application onto a Linode server with Capistrano. I've installed Ruby and Capistrano, and configured my deploy.rb
file (possibly incorrectly).
However, when I run cap deploy
I receive this error:
[deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: myusername@lish-atlanta.linode.com (Net::SSH::AuthenticationFailed: myusername)
connection failed for: myusername@lish-atlanta.linode.com (Net::SSH::AuthenticationFailed: myusername)
Here's my deploy.rb
file:
set :application, "App name"
set :repository, "https://github.com/MyProject/Main.git"
set :user, "root"
set :password, "sshpassword"
set :scm, :git
set :deploy_to, "/srv/www/myproject.com/htdocs"
set :deploy_via, :remote_cache
set :use_sudo, false
set :copy_exclude, [".git", ".DS_Store", ".gitignore", ".gitmodules", "Capfile", "config/deploy.rb"]
set :ssh_options, {:forward_agent => true}
server "myusername@lish-atlanta.linode.com", :app
I've verified the username and password work for SSH (I've logged into SSH from the terminal with those credentials).
Any ideas? Any help would be greatly appreciated! I can clarify the question if needed :)