I’m following along with this tutorial http://toroid.org/ams/git-website-howto about how to use git to deploy to a remote server with a simple command like ‘git push web.’ The article has the following paragraph
“I assume that the web site will live on a server to which you have ssh access, and that things are set up so that you can ssh to it without having to type a password (i.e., that your public key is in ~/.ssh/authorized_keys and you are running ssh-agent locally).”
In the .ssh directory on my local machine, I have
“id_rsa id_rsa.pub key_backup known_hosts”
i.e. there is no ‘authorized_keys’
Can anyone explain how I might create authorized keys for this to work? thanks in advance
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!