Question

How do I deploy a rails app

Posted March 22, 2020 118 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.

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

Submit an Answer