Report this

What is the reason for this report?

how to create authorized keys

Posted on July 23, 2013

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.

Check out: <br> <br>1.) <a href=“https://www.digitalocean.com/community/articles/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps”>How to Create SSH Keys with PuTTY to Connect to a VPS | DigitalOcean</a>; <br> <br>2.) <a href=“https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2”>How to Set Up SSH Keys | DigitalOcean</a>; <br> <br>3.) <a href=“https://www.digitalocean.com/community/articles/how-to-install-git-on-ubuntu-12-04”>How to Install Git on Ubuntu 12.04 | DigitalOcean</a>; <br> <br>4.) <a href=“https://www.digitalocean.com/community/articles/how-to-use-git-effectively”>How to Use Git Effectively | DigitalOcean</a>; <br> <br>5.) <a href=“https://www.digitalocean.com/community/articles/how-to-use-git-branches”>How to Use Git Branches | DigitalOcean</a>

Run: ssh-copy-id user@ip - this command will copy your public key into ~/.ssh/authorized_keys <br> <br>Make sure it works by running: ssh user@ip <br>If you are not prompted for a password and successfully log in, it works.

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.