We are to have SSH access to client's Linux server for code installation and launch. As the client has given us FTP connection client has also said: "SSH access: Can you send me your SSH key. I will connect it to our Linux server."

Is this procedure correct, valid ?

Seems to me client should generate SSH key and forward to us for SSH access...

1 Answer 1


I think that's correct, you can create your own ssh keys with ssh-gen:

ssh-keygen -t rsa

You must send him the public key, for him to add to authorized_keys and enable you to access.

You may need to additionally add the private key to the ssh-agent for it to use by default:

eval $(ssh-agent -s)
ssh-add /dir_to_private_key
  • 1
    if you already have private/public key, you can give public key, they usualy look lie ssh-rsa AAA-a-long-line== a comment
    – Archemar
    Commented Nov 4, 2022 at 13:17
  • 1
    You can indeed reuse your existing public key. However, if you're providing the key to a third party you may prefer to generate a separate key that can be discarded when you've finished with it Commented Nov 4, 2022 at 15:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .