Conor Schaefer on 20 Oct 2011 10:07:23 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Setting up SSH public key on OSX


On Thu, Oct 20, 2011 at 12:43 PM, David Coulson <david@davidcoulson.net> wrote:
You need to put the contents of id_rsa.pub in ~/.ssh/authorized_keys on the remote side. You also need to ensure .ssh and authorized_keys are not group or world read/execute.

This is true. chmoding is crucial for good security.

Try this guide: https://help.ubuntu.com/community/SSH/OpenSSH/Keys As David mentioned, understanding the process in either OS should give you all the knowledge necessary to move between the two.
Â
The -C option doesn't do anything useful for ssh-keygen.

FYI, the OS X ssh config is identical to anything else using OpenSSH.

David


On 10/20/11 12:37 PM, Paul Walker wrote:
I'm trying to set up a public key to connect to SSH using public key authentication to improve my Git workflow....Â

The remote server is Ubuntu 10.0.4.
I generate the keys with the command:

ssh-keygen -t rsa -C "root@mydomain.com"

press return three times, then am pasting the contents of Âid_rsa.pub into a newly created authorized_keys file in ~/.ssh/ on my local machine running OSX...Â

This isn't working.

Anyone familiar with the configuration on OSX / Ubuntu can tell me what's wrong or point me in the right direction

Thanks in advance

Paul


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group     --    Âhttp://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion Â-- Â http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug