Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does GitHub recommend https over ssh urls?

I just noticed that the GitHub Help is recommending HTTPS over SSH URLs

Why is this? GitHub originally recommended using SSH but they now recommend HTTPS to access and update repositories?

like image 620
Alvaro Joao Avatar asked May 21 '26 00:05

Alvaro Joao


1 Answers

Based on the link provided by @Jonathan.Brink, the main advantages motivating GitHub's recommendation of HTTPS over SSH URLs is that

  1. it typically works in places where SSH and plain-Git protocols get blocked (and can sometimes be faster)
  2. it allows for two-factor authentication using a personal access token
  3. it will always verify the server (though this may not be as secure as one would hope)
like image 69
Steven C. Howell Avatar answered May 22 '26 14:05

Steven C. Howell