1

how can I add an SSH-key generated from a computer of a friend to my server?

Currently I don't have access to his computer he just sent me his SSH key.

  • Easiest method is ssh-copy-id from the duplicate – Panther Feb 22 '18 at 15:26
2

You just have to append the key to the ~/.ssh/authorized_keys file in your server

| improve this answer | |
  • ssh-copy-id is easier and more automated =) – Panther Feb 22 '18 at 15:27
  • @Panther yes but "Currently I don't have access to his computer he just sent me his SSH key." – Félicien Feb 22 '18 at 15:29

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