Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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 command...at 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
add comment

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.