-
-
Notifications
You must be signed in to change notification settings - Fork 927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace SSH key setup with Git Credential Manager #1055
Comments
I was about to open a similar issue. At the moment, I even find the reason given in the lesson for using ssh over https misleading:
This makes it sound like https wouldn't be a secure protocol (but it is) and that https wouldn't be used by many applications, when I would bet that it is used by more applications than ssh is. I have nothing against ssh, but https is simply a lot easier to work with when engaging a newcomer-level crowd and even experienced devs can make it work just as nicely as ssh does. |
Unfortunately, using https with a password is no longer an option on GitHub. Attempting to do so causes the following message:
Personal access tokens could work. I've never used them, but I suspect that explaining how they work and generating them would be pretty much as problematic as setting up SSH keys. Git credential manager or the GitHub CLI could be interesting to discuss. I'm not familiar enough at the moment but I'd be in favour of a community discussion on the issue. @swcarpentry/git-novice-maintainers |
Right - github has that problem. On the other hand: setting up a personal token is quick in the web interface, could be documented through screen shots and in the end, from the usage point it's nothing else than a fancy password: one a user cannot choose (and thus, cannot create weakly). Also, as far as I know only github has this limitation: other remote git providers usually offer https password authentication - sometimes even exclusively. |
@martinosorb Git Credential Manager (GCM) comes with Git for Windows. If you try e.g. @knarrff, your point about |
I was about to make a similar issue here, it's good to know this was time-consuming for other instructors. My institution recently held an introductory git workshop and setting up SSH took over at least half of it (next time, my colleague and I are offering an extra two hour setup in the morning before the workshop to handle this). |
How could the content be improved?
Having recently instructed this we found the SSH key setup was time-consuming and deviated from to core goals of the lesson. The course is about introducing Git but then introduces SSH, a new concept to many participants.
Since Git Credential Manager comes with Git for Windows, we found it far easier to use that. That way the lesson stayed focussed on the topic "Git" and did not deviate to become a lesson about SSH. We would need to add Git Credential Manager to setup instructions and make sure it works well on macOS and linux.
I know SSH keys are a very useful way to authenticate with GitHub, but perhaps should be left out of the course and hinted at instead (e.g. useful if using Git on a computer cluster).
The text was updated successfully, but these errors were encountered: