Clone your GitHub repository using SSH

preview_player
Показать описание
Follow these steps to add ssh keys to your GitHub account and clone the repo with the SSH URL.

1. Open your terminal and type ssh-keygen.
2. Press enter to accept the default file location and passphrase.
4. Go to your GitHub account settings and click on SSH and GPG keys.
5. Click on New SSH key and paste your public key in the key field. Give it a title and save it.
6. Go to the repo you want to clone and click on Code. Choose SSH as the clone method and copy the SSH URL.
7. In your terminal, type git clone followed by the SSH URL. You should be able to clone the repo without entering your username and password.

Рекомендации по теме
Комментарии
Автор

Thanks for this, very short and precise
and this will be my first time working with SSH though i have an issue with the "cat" that was been used cos am using window system so "cat" doesn't work, instead i use "type". E.g: Instead of "cat then i changed the "cat" to "type" and used it like this:
"type and it worked. hopefully it will be helpful to most of you 🤗

fuskydon
Автор

I cannot explain how helpful this video has been for me.

aashishadhikari
Автор

Keep posting. Learning so much from your channel. Procedures written in the description were also more beneficial. Thanks.

chandipen
Автор

This video saved me a lot of confusion and time, thanks for making it!

savidulai
Автор

Thank you so much! This was easy to follow and straight to the point!

bl.fl.
Автор

Very straightforward tutorial. Very helpful.

aashishadhikari
Автор

Thank you! You were so direct and clear!

rafaelsagaz
Автор

You helped before I started the vid. I made an ssh key but I was ussing HTTPS link rather then SSH link.

kacperkondzior
Автор

That's crazy. I copied everything but I don't know why this whole process is needed? Can someone explain this to me?

davideinstein
Автор

I have tried the same method but it’s not coming

TRPMotoVlogs
Автор

When I try step 3: "3. Copy the public key to your clipboard with cat ~/.ssh/id_rsa.pub", I recieved message: "No such file or directory" ? (of course my path is different)

milanzero