don't git clone over https! (beginner) anthony explains #507

don't git clone over https! (beginner) anthony explains #507

anthonywritescode

1 год назад

17,429 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

michal roesler
michal roesler - 25.09.2023 12:09

That tutorial worked for me. It's awesome and very professional.

Ответить
drazenboy
drazenboy - 08.01.2023 01:56

Newbie question here about encryption, so since you gave GitHub your public key, does that mean that they can publicly share that repo encrypted with your public key and since you have the private key you're the only one who can decrypt that information?

What about the reverse to push? Is my understanding correct that GitHub would authenticate you when you successfully decrypt the first message sent you encrypted with your public key, hence permitting you to do pushes in the session?

Ответить
XSCORP
XSCORP - 26.12.2022 20:11

Git also provides using access tokens instead. So if you don't wanna use your password to git, you can use that access token in place of your password. And what is better is that you can confine the access rights for that token. So even if somebody steals your access token, he would only be able to do things that the access token was allowed you do while compromise of SSH keys might lead to havoc.

Ответить
guntbert
guntbert - 24.12.2022 01:58

I've been using ssh keys for a Very Long Time™ but never thought of using a naked ssh-add ;-)

Ответить
Max Xiong
Max Xiong - 23.12.2022 23:27

What about using github cli?

Ответить
Phaust94
Phaust94 - 23.12.2022 20:49

Good luck doing that on Windows as a beginner :)

Ответить
Or Carmi
Or Carmi - 23.12.2022 19:16

Thanks for this.
Would you recommend ssh keys over api tokens as well?

Ответить
Ferran Jovell
Ferran Jovell - 23.12.2022 19:09

Oookay, time to rotate my ssh keys.

Would you recommend storing ssh key pairs in a password manager?

Ответить