[Uw-ruby] ssh public key authentication for cap2

Philip Soares psoares at u.washington.edu
Wed Feb 27 23:35:18 PST 2008


Hi,

# You need id_rsa in ~/.ssh/ (rename id_rsa-uw-rails to id_rsa)
# You need id_rsa.pub in ~/.ssh (create that file and put the below line
into it - it's one line)

ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQCEV3lSM6P7uMfu/1mY+mArEPRiLPVPDp9aH7xYEsWtvjgFyY9qsuElHTEP3naVX4uHWK58Uq9HXaQ1MHztC+pN95JjI743QIfF54fgWglkoMz6L4e+69cNCleOSa2/LN+tCZGntq2bWFC7WBzqCDq1dCjn9DTaMiwDhjPHkcqpVgjFfTgf5jkVs+N4lP8VWvaAItjB5mVwPpZRjTHv2LH5k+ZkKWNRgpdAsPNC7TysrqHdQeX9Q7uvNAyMQks9XASkDv8bF2CcVKzN5tVub9P6sbPYqJ/YaOmRMkqKmgrELopwuGSt6ZksIT02HH7GDHxuVsqIvbhUw0RhtfHuwgiT
uw-rails

# Run ssh-agent

ssh-agent

# Specify the user "root" (your hostname will be different) for your
host in your deploy.rb
# Otherwise, by default your username on the host from which you run cap
would be used

role :app, "ec2-67-202-37-97.compute-1.amazonaws.com", :user => "root"
role :web, "ec2-67-202-37-97.compute-1.amazonaws.com", :user => "root"
role :db,  "ec2-67-202-37-97.compute-1.amazonaws.com", :primary => true,
:user => "root"

-Philip


More information about the Uw-ruby mailing list