Question

How do I deploy a rails app

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’:”


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

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 example@exampleKey.com


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/id_rsa.pub.

The key fingerprint is:

34:87:67:ea:c2:49:ee:c2:81:d2:10:84:b1:3e:05:59 example@exampleKey.com

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!!

Regards, KDSys