By m73mitchell
I’m following this tutorial https://www.digitalocean.com/community/articles/how-to-securely-configure-a-production-mongodb-server for creating a secure connection to a Mongo database
When I ran these commands
# The \s are just to multiline the command and make it more readable ssh \ -L 4321:localhost:27017 \ -i ~/.ssh/my_secure_key \ ssh_user@mongo_db_droplet_host_or_ip
it told me that, regarding this line -i ~/.ssh/my_secure_key , my_secure_key is not accessible. No such file or directory. Am I supposed to replace ‘my_secure_key’ with a key that I get from somewhere?
Thanks for your help
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!
By default, it’s supposed to be ~/.ssh/id_rsa <br>If that doesn’t work, please paste the output of “ls ~/.ssh”
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.