I typically like to use my home computer for programming, and I have a SSH key for it (using github). However, most of my time is spent at the university, and I would like to work on projects on these computers. Would cloning through https work? Would I still use SSH? TIA.
Depends. Are these public computers where you only have a guest account, like in a public library or an internet cafe?
Because most decent universities just give every student and staff their own accounts so you can log in to a personal linux (or windows) environment. There you can work like at home (generating a new ssh key and saving it in ~/.ssh doesn’t require root privileges).
Cloning via HTTP woyld absolutely work, and is better for ephemeral environments (at least for my uni there is no persistent storage for users, only cloud storage for documents etc)
If you’re using GitHub, you can just press the period key when logged in and viewing your repo to load up VSCode in the browser and work.
Clear the cache when you’re done.
Cloning over HTTPS should work. You can associate your ssh key with your github identity by specifying an extended hostname in your remote, e.g. `[email protected]:my-account/my-repo.git` and adding a new section to your ~/.ssh/config file.
Side quest: boot the school computer from a Linux thumb drive. Work on and store your projects and schoolwork on a partition of the drive. Use a VPN to avoid any content blockage the school implements. Then how you work with git or github is up to you. Some schools and libraries prevent booting from USB, so this may not work for you.
Reboot the computer when done, restoring to whatever OS the school uses. If it’s ms windows, maybe choose a window manager that emulates the look of whatever the latest version of ms windows is.
To make it a good experience purchase a thumb drive that performs. Most flash drives are low quality and painfully slow.
One minor point – and it may not matter for your school, but at least in the US, if you use a work of school computer to do your own work for profit, they may have claim to it, not you. I doubt that applies to a school where you’re just doing your own non-for-pay projects, but do be careful about this.
For me, I’d consider remoting into my own machines – then anything you, anywhere you go, originates on your machine and keeps everything “clean”.