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!
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
ssh-keygen -t rsa -C your email address
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.