SSH key is needed in some secure connections like when you want to upload your codes to a repository or when you want to encrypt a message before send it to an API, here how to make one
1. Open your terminal
And type this command
2. Type your SSH Key Path
Because i want to use cobakuncissh as the name so i will type this
3. Enter your password
You will asked for a password, type it twice, you can leave it blank
4. The key is ready to use
Now you can use the ssh key you just created, dont forget the file path
How to copy the public key
The public key is the key you can share to public, for exampe if you want to register the public key in a repository website, you can copy the public key using the following command if you use mac
I hope that helps you guys, have a nice day!