1

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.

1

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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