Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I lack a lot of knowledge regarding the subject so please excuse me if my question is very ignorant.

I just started out with RSA key authentication to my test-server. It did not work at the beginning and I tried and tried and re-tried to no avail.

Then I realised, I was creating "mkdir ~/.ssh" and then "mkdir ~/.ssh/authorized_keys" before placing the id_rsa.pub into the latter folder, which did not work.

My question is:

How can id_rsa.pub be placed in "authorized_keys", which is not created by "mkdir" therefore not a folder?

Thank you.

share|improve this question
up vote 5 down vote accepted

That's because authorized_keys is a file. You create it by appending each individual key on a new line.

share|improve this answer
    
Thank you very much. – Phil Oct 21 '12 at 20:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.