http://obsozm7z2cmo5ntvfzyqfbyksuhafg74ggv32wpuplb3gv72gnmq.b32.i2p/knowledgebase/22/Add-your-SSH-key-to-your-VPS.html
You always share your pub key with the server and NEVER your private key! Important is the content of your public key file. cat ~/.ssh/id_ed25519.pub To add the key to your server select and copy the contents of the id_ed25519.pub file and paste it in the authorzied_keys file on your server which you can find in the homedirectory from your server user ~/.ssh/authorized_keys.