Hi Uwe, On 09/12/2022 15:53, Uwe Brauer wrote: > Next semester I want to run an > experiment and encourage my students to use a VC for their coding, and > since Matlab supports git (and svn) it will be git. > > However I encounter a problem: so far I have tested github and bitbucket > and both don't allow to push via https and a simple password anymore. > > My ssh knowledge is a bit rusty, but in order to have ssh, one needs to > generate a key pair, and to put the public key in github/bitbucket > (https://gist.github.com/xirixiz/b6b0c6f4917ce17a90e00f9b60566278) > > That alone might be difficult for some students, the real problem is: > one needs to have the private key installed in the machine from which > one is pushing. > > Now the students will work in the University on public Desktops, so to > have private keys there is a no-go.
A clarification here. Do the students have, or are allowed, USB access to the desktops? Or are the desktops locked down? Do students have local storage space that is password (user) protected on the university system, or is it just a password for access control (to the tools)? Are FIDO tokens a possibility via the USB ports? (I've not used them..) > > Any suggestion how to deal with this requirements? Workarounds usually need some gap in the system that gives an access port to the trust the student/user has already been given, hence the query about the limits of the existing trust relationships. A secondary thought is that if it's just push/fetch/pull (and ls-remote) that's needed, then can't they add a password to that specific host ssh. I certainly have a password set for all my GitHub pushes, though as I've a public open repos the fetch doesn't need me to provide the ssh password. The `.git` folder for the users local repo is stored with the project directory anyway, so the restrictions on project access should be the same. I used the fact that .git was hidden to start using version storage [remember there is no control in DVCS - the control has already been distributed to the user, not the 'manager' ;-) ] on Matlab when I was working - my branch didn't show up for the other users as the common storage was still on 'main' and the '.git' was hidden ;-) Philip -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/b0320073-e394-76e9-87b3-7ba6dbbbc7e8%40iee.email.