Rails Machine Wiki

Allow Rails Machine Staff access to yourserver via SSH Keys

To allow Rails Machine staff to access your server, you’ll need to add our SSH key to your list of authorized keys.
To do so, please perform the following steps from your server:

  wget http://assets.railsmachine.com/wiki/rails@build.pub # download our key
  mkdir -p ~/.ssh                                          # setup ssh directory
  chmod 0700 ~/.ssh                                        # ensure permissions are setup right
  cat rails@build.pub >> ~/.ssh/authorized_keys            # add our key to the authorized_list
  chmod 0600 ~/.ssh/authorized_keys                        # ensure permissions are setup right

To perform some tasks on your server, we’ll need sudo access. To avoid passing around your password, it’s possible to enable passwordless sudo for the primary user. To do, SSH to your server and perform the following steps:

  sudo su - # change to the root user
  visudo    # edit the sudoers file

If the username you’d like us to SSH in is named ‘deploy’, you’d add the following line to the end of the sudoers file:

  deploy ALL=(ALL) NOPASSWD: ALL

Save the file, and you’re done!

Once this is all done, please provide us a list of the usernames and hostnames of all servers, and we’ll confirm we can access them.

Meta