Report this

What is the reason for this report?

How do I deploy a rails app

Posted on March 22, 2020

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



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.