Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by Chris Aitchison for (Net::SSH::AuthenticationFailed: root) when deploying Rails app with Rubber to EC2

Rubber expects to be given your EC2 credentials in the YAML file config/rubber/rubber.yml

access_key: xxxsecret_access_key: blahaccount: 123

To find these values:

  • Sign into AWS
  • In the top right of the screen, click your username and select Security Credentials
  • The account number is near the top right of the page that opens
  • Your access_key is halfway down this page and there is a link to see your secret_access_key

Rubber uses these credentials to configure your AWS infrastructure.

When connecting to an actual server, it will require your secret RSA key. You need to tell rubber the name of the keypair (as shown in your EC2 dashboard), and its location. Again in config/rubber/rubber.yml

key_name: my-keypairkey_file: ~/.ec2/myec2.pem

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>