Push to GitHub from public PC after passwords deprecation

Viewed 79
1 Answers

In almost all cases, Git is installed in conjunction with OpenSSH. Git for Windows includes OpenSSH, and OpenSSH is also included in Windows 10. Most Unix systems that have Git installed will have OpenSSH installed automatically.

Assuming that one of those is the case, you can then use an SSH key on a flash drive and set GIT_SSH_COMMAND="ssh -i /path/to/flash/drive/id_ed25519" when performing those operations.

If you really don't have OpenSSH already installed, you could use a password manager on your phone and then type in the token by hand, possibly using the cache credential helper. You could also try to boot the system from a live USB drive and then use Git from there with a suitable SSH key also stored on the drive.

Related