Page Title
Body 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*: <pre><code> 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 </code></pre> 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: <pre><code> sudo su - # change to the root user visudo # edit the sudoers file </code></pre> 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: <pre><code> deploy ALL=(ALL) NOPASSWD: ALL </code></pre> 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.
Make page private