Skip to content

Rubber password hiccup

2012 May 23
by Alec

Since this same thing has tripped me up TWICE now, unbelievably, I thought I’d just put it out on the interwebs. I’ve been using rubber lately to deploy a rails app to Amazon EC2, and it’s mostly been painless. However, when running rubber:create_staging, at one point it prompts you for a sudo password to edit the /etc/hosts file. This is your LOCAL SYSTEM PASSWORD, not your EC2 instance’s root password (which probably doesn’t even exist). Rubber wants to use an alias to connect to the server, and chances are you haven’t set up the DNS to point to the just-created instance, so the workaround is to add the alias to your local machine’s recognized hosts. There you go.

Comments are closed.