Subject: help with steps to change deploy.rb to SSH public/private key-pair authentication
I'm following the steps to deploy with capistrano and need help with the following note:
Note: Our deploy.rb file contains the username and password of the deploy user for your environment(s). For security, it’s highly recommended that you change to a SSH public/private key-pair authentication method of your deployment machine and remove the password directive from the deploy.rb file. It’s considered a bad practice to commit the username and password to your environment(s) into your repository.
Could you layout the steps I follow when changing deploy.rb.
For example what code to I add to utilize ssh.
What code do I remove. I'm guessing I remove from this section
task :production do
role :web, '174.129.0.212' role :app, '174.129.0.212' role :db,
'174.129.0.212', :primary => true set :environment_database,
Proc.new { production_database } set :dbuser, 'deploy' set :dbpass,
'passwordhere' set :user, 'deploy' set :password, 'passwordhere'
set :runner, 'deploy' set :rails_env, 'production' end
Thank you
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Edward Muller on 03 Oct, 2009 12:36 AM
I'll be away until 10/4/2009.
If this is an emergency please email dpeterson@engineyard.com,
ljensen@engineyard.com or mnicosia@engineyard.com
--
Edward Muller
Sr. Systems Engineer
Engine Yard Inc. : Support, Scalability, Reliability
+1.866.518.9273 x209 - Mobile: +1.417.844.2435
IRC: edwardam - XMPP/GTalk: emuller@engineyard.com
Pacific/US