Create SSH Key

Posted by : on

Category : terminal   ssh


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

ssh-keygen

SSH Keygen Step 1

2. Type your SSH Key Path

Because i want to use cobakuncissh as the name so i will type this

/Users/anhartasman/.ssh/cobakuncissh

3. Enter your password

You will asked for a password, type it twice, you can leave it blank

SSH Keygen Step 2

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

cat /Users/anhartasman/.ssh/cobakuncissh.pub  | pbcopy

I hope that helps you guys, have a nice day!


About Anhar Tasman
Anhar Tasman

Full Stack Developer

Email : tasmananhar@gmail.com

Website :

About Anhar Tasman

With over 5 years of experience in programming, I have successfully developed mobile and web applications for a variety of clients. In my most recent role as Senior Programmer, I have consistently delivered high-quality work, resulting in a 20% increase in client satisfaction within 6 months. Available for new projects in 2 weeks.

Useful Links