Creating an SSH key is a fundamental step for securely accessing remote servers and services. In this guide, we’ll walk you through the simple process of generating an SSH key pair, which ensures secure and password-free authentication for your connections.
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!