Copying an SSH Public Key to a Server

Posted by Nathan Arthur on Pro Webmasters See other posts from Pro Webmasters or by Nathan Arthur
Published on 2013-11-03T15:11:14Z Indexed on 2013/11/03 16:12 UTC
Read the original article Hit count: 266

Filed under:
|

I'm attempting to setup a git repository on my Dreamhost web server by following the "Setup: For the Impatient" instructions here. I'm having difficulty setting up public key access to the server.

After successfully creating my public key, I ran the following command:

cat ~/.ssh/[MY KEY].pub | ssh [USER]@[MACHINE] "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

...replacing the appropriate placeholders with the correct values.

Everything seemed to go through fine. The server asked for my password, and, as far as I can tell, executed the command. There is indeed a ~/.ssh/authorized_keys file on the server.

The problem: When I try to SSH into the server, it still asks for my password. My understanding is that it shouldn't be asking for my password anymore. What am I missing?

© Pro Webmasters or respective owner

Related posts about webserver

Related posts about authentication