How do I deploy a rails app

Posted March 22, 2020 534 views
Ruby on Rails

I have been following articles on deploying a rails app to a droplet and the deployment stops after running cap production deploy:initial on “01 Enter passphrase for key ’/home/deploy/.ssh/id_rsa’:”

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @marshallchikari,

It seems like you have added a SSH private key - /home/deploy/.ssh/id_rsa:” and it needs the passphrase you’ve used when creating it.

If you don’t know the passphrase, you won’t be able to use the SSH key and will need to generate a new key. If you are unware how to generate a new key, follow the bellow steps

  • Enter the command
ssh-keygen -t rsa -C your email address
  • Check the following example :
ssh-keygen -t rsa -C

Generating public/private rsa key pair.

Enter file in which to save the key (/home/example/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/example/.ssh/id_rsa.

Your public key has been saved in /home/example/.ssh/

The key fingerprint is:


You’ll now have an SSH key which you can use.

Please note generating a new SSH key will mean your previous key will be removed!!