Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 want to generate a public- private key on sever 1 and store it a location which is not the default location.

then save the public key on server 2 NOT at the default location.

then make this key an authorised key. i cannot find authorised_keys file in .ssh how do i make it auhorised.

share|improve this question

Either create the file yourself or use ssh-copy-id to generate it for you.

share|improve this answer
can you elaborate ssh-copy-id – sam Feb 14 '11 at 10:58
No, I believe I'll let the man page do so. man ssh-copy-id – Ignacio Vazquez-Abrams Feb 14 '11 at 10:59
i mean where i have to use this which stage – sam Feb 14 '11 at 11:00
After you've generated the key, on the machine you've generated it at. – Ignacio Vazquez-Abrams Feb 14 '11 at 11:00
ssh-copy-id command was not found,but creating the file did the work...thnx – sam Feb 14 '11 at 11:44

Your Answer


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.