View Single Post
Posts: 63 | Thanked: 139 times | Joined on Apr 2010
#23
Originally Posted by rantom View Post
And creating a new folder "authorized_keys2" didn't help either.
You were not supposed to create a folder.
The command:
Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys2'
does not move the file into a folder authorized_keys2, it adds the public key held in the file id_urpo.pub to the end of the file authorized_keys2 (if it does not exist, cat creates it first) .

If you created a folder authorized_keys2, you should remove (or rename if you want to keep the contents) it and try again with the above command.

If you created the folder authorized_keys yourself too, its best to rename that too and try again with the command

Code:
 cat ~/.ssh/id_urpo.pub | ssh user@computer 'cat >> ~./ssh/authorized_keys'
(SSH should just need the public key in either authorized_keys or authorized_keys2, but I am not sure which one OS X wants.)

My first guess in the post #8 was based on the far too hasty assumption that the folder authorized_keys was preconfigured for you by the OS X, and thus should be there. Sorry for the mess...