Blog Item

GIT, How to Make Key in Mac?

Image

by Roscha Dev 6 months ago 23 comments

GIT, How to Make Key in Mac? Do it by following these steps:

1) Checking existing key with command: ls -al ~/.ssh

Supporting files name:

  • Id_rsa.pub

  • Id_ecdsa.pub

  • id_ed25519.pub

2) If you don't have a supported public and private key pair, or don't wish to use any that are available, generate a new SSH key.

3) If you see an existing public and private key pair listed (for example, id_rsa.pub and id_rsa) that you would like to use to connect to GitHub, you can add the key to the ssh-agent.

4) Generate key with: ssh-keygen -t ed25519 -C "your_email@example.com"

4) Start the ssh-agent in the background with: eval "$(ssh-agent -s)"

5) If you're using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain.

  • First, check to see if your ~/.ssh/config file exists in the default location with: 

open ~/.ssh/config

  • If the file doesn't exist, create the file with: 

touch ~/.ssh/config


  • Open your ~/.ssh/config file, then modify the file to contain the following lines. If your SSH key file has a different name or path than the example code, modify the filename or path to match your current setup.

Host github.com

  AddKeysToAgent yes

  UseKeychain yes

  IdentityFile ~/.ssh/id_ed25519

  • Add your SSH private key to the ssh-agent and store your passphrase in the keychain. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_ed25519 in the command with the name of your private key file.

ssh-add --apple-use-keychain ~/.ssh/id_ed25519

6) Add ssh key to git account. Copy the SSH public key to your clipboard with: 

pbcopy < ~/.ssh/id_ed25519.pub

7) Paste to github add ssh key in github repository

Note: If want we can using git repository personal access token for replacing password.


Tags: git, mac,

23 comments


  • Thanx Too

    Awesome website Dude...

    2023-10-10 07:06:24

  • Grant

    Milena Hardy

    2023-12-19 11:58:49

  • Blair

    Jaylani Kline

    2023-12-24 10:40:23

  • Juan

    Adriel Murphy

    2024-02-08 03:10:15

  • shoponthe.top

    Wow, incredible weblog format! How long have you been blogging for? you make running a blog glance easy. The entire look of your web site is great, as smartly as the content material! You can see similar: Shoponthe.top and here https://shoponthe.top

    2024-02-09 22:24:17

  • dobry sklep

    I am not sure the place you're getting your information, but good topic. I must spend a while finding out much more or understanding more. Thanks for excellent info I was on the lookout for this information for my mission. I saw similar here: sklep online and also here: dobry sklep

    2024-02-12 22:03:13

  • sklep online

    constantly i used to read smaller content which also clear their motive, and that is also happening with this piece of writing which I am reading here. I saw similar here: sklep internetowy and also here: dobry sklep

    2024-02-12 22:23:32

  • dobry sklep

    Normally I do not read post on blogs, but I wish to say that this write-up very forced me to take a look at and do so! Your writing style has been surprised me. Thank you, very nice post. I saw similar here: e-commerce and also here: ecommerce

    2024-02-13 00:08:41

  • ecommerce

    Hi, i think that i saw you visited my website thus i came to “return the favor”.I'm attempting to find things to enhance my web site!I suppose its ok to use some of your ideas!! I saw similar here: dobry sklep and also here: sklep online

    2024-02-13 09:09:33

  • sklep online

    What a stuff of un-ambiguity and preserveness of precious knowledge on the topic of unexpected emotions.!

    2024-02-14 05:07:34

  • ecommerce

    My spouse and I absolutely love your blog and find almost all of your post's to be what precisely I'm looking for. can you offer guest writers to write content in your case? I wouldn't mind writing a post or elaborating on most of the subjects you write concerning here. Again, awesome web log! I saw similar here: ecommerce and also here: sklep internetowy

    2024-02-28 09:00:10

  • Najlepszy Sklep

    Greetings! Very useful advice in this particular post! It is the little changes that will make the biggest changes. Many thanks for sharing! I saw similar here: sklep online and also here: sklep internetowy

    2024-02-28 11:23:07

  • dobry sklep

    Hi there colleagues, how is everything, and what you wish for to say concerning this article, in my view its truly remarkable in support of me. I saw similar here: e-commerce and also here: najlepszy sklep

    2024-03-02 12:40:21

  • sklep online

    Hey there! Do you know if they make any plugins to protect against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any tips? I saw similar here: dobry sklep and also here: sklep online

    2024-03-02 17:50:51

  • April

    Justice Nichols

    2024-03-04 00:08:46

  • najlepszy sklep

    Please let me know if you're looking for a writer for your weblog. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I'd love to write some material for your blog in exchange for a link back to mine. Please shoot me an e-mail if interested. Thanks! I saw similar here: dobry sklep and also here: dobry sklep

    2024-03-14 10:46:59

  • sklep

    Hmm it appears like your website ate my first comment (it was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog. I as well am an aspiring blog writer but I'm still new to everything. Do you have any suggestions for rookie blog writers? I'd certainly appreciate it. I saw similar here: Sklep online

    2024-03-22 07:46:00

  • najlepszy sklep

    Hi there! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good results. If you know of any please share. Cheers! You can read similar art here: Najlepszy sklep

    2024-03-28 07:52:31

  • ecommerce

    Hey! Do you know if they make any plugins to assist with SEO? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good results. If you know of any please share. Kudos! You can read similar art here: Dobry sklep

    2024-03-28 11:05:53

  • najlepszy sklep

    Hi there! Do you know if they make any plugins to assist with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good gains. If you know of any please share. Appreciate it! You can read similar text here: Dobry sklep

    2024-03-29 06:14:59

  • Scrapebox AA List

    Hi! Do you know if they make any plugins to help with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good results. If you know of any please share. Appreciate it! I saw similar text here: Backlinks List

    2024-04-03 20:03:46

  • Silas69

    Wow, superb blog layout! How long have you been running a blog for? you made running a blog look easy. The whole look of your site is wonderful, as smartly as the content material! I read similar here prev next and it's was wrote by Charise89.

    2024-04-20 11:19:48

  • wo kann man reduslim kaufen

    Rossmann Reduslim ist ein neues Produkt, das auf dem Markt für Gewichtsverlust und Gesundheit erhältlich ist. Diese Kapseln bieten eine natürliche und effektive Lösung für Menschen, die auf sich achten und ihr Gewicht kontrollieren möchten. Die spezielle Zusammensetzung von Reduslim zielt darauf ab, den Stoffwechsel zu steigern und Fettdepots im Körper zu reduzieren. Kundenberichte bestätigen die Wirksamkeit dieses Produkts, das bei Rossmann erhältlich ist. Die Kombination aus natürlichen Inhaltsstoffen wie grünem Tee, Bitterorange und Ingwerwurzel macht Reduslim zu einer sicheren und effektiven Option für die Gewichtsabnahme. Studien haben gezeigt, dass regelmäßige Einnahme dieser Kapseln dazu beitragen kann, den Appetit zu reduzieren und den Körper bei der Fettverbrennung zu unterstützen. Rossmann bietet seinen Kunden mit Reduslim eine hochwertige Lösung für ihr Gewichtsmanagement. Die positiven Bewertungen von Nutzern sprechen für sich und zeigen, dass dieses Produkt eine gute Wahl für alle ist, die ihren Körper gesund und fit halten möchten. Probieren Sie Reduslim noch heute aus und erleben Sie die Vorteile dieses innovativen Nahrungsergänzungsmittels.

    2024-06-17 18:29:22

Leave a Comment

Recent Posts

  • riot

    Menambahkan SSH di Mac

    6 months ago

    ls -al ~/.ssh : check semua ssh yang adaeval "$(ssh-agent -s)" : memulai ssh agent di backgroundopen ~/.ssh/config : check apakah sudah ada file config sshtouch ~/.ssh/config : kalau file belum ada, b...


  • riot

    GIT, How to Make Key in Mac?

    6 months ago

    GIT, How to Make Key in Mac? Do it by following these steps:1) Checking existing key with command: ls -al ~/.sshSupporting files name:Id_rsa.pubId_ecdsa.pubid_ed25519.pub2) If you don't have a support...


  • riot

    React, Vue, dan Angular, Manakah yang Paling Mudah?

    8 months ago

    React, Vue, dan Angular, Manakah yang Paling Mudah? Setelah menggunakan ketiga Framework Javascript ini beberapa tahun ini, saya dapat memberitahukan bahwa yang paling mudah untuk dipelajari adalah Re...


  • riot

    Website dan Aplikasi

    9 months ago

    Tiga besar framework pemrograman aplikasi mobile multi platform (android dan IOS), yang menjadi jawara saat ini secara berurutan adalah:React NativeFlutterXamarinKeberhasilan masing-masing framework i...