Generate ssh keys with strong crypto type (ed25519) and comment
ssh-keygen -t ed25519 -C "Your comment here" # add a passphrase for added security # name the ssh file the server it will be used in ~/.ssh/keyname
Copy generated ssh public key to the host server it will be used on
ssh-copy-id -i ~/.ssh/keyname.pub username@hostserver
Use the ssh private key to connect to the host server
ssh -i ~/.ssh/keyname username@hostserver