5 ms·
Honestly, in the case of a shared computer, I wouldn't recommend even using a password. A lot of employers put monitoring software on their computers, and have
by aloisklink 5y ago
Honestly, in the case of a shared computer, I wouldn't recommend even using a password.
A lot of employers put monitoring software on their computers, and have keyloggers that can record your passwords. It's probably illegal for them to use the passwords, but I have heard horror stories where employers secretly log into their worker's social media accounts.
I'd recommending buying a U2F or FIDO2 security key, and creating a ed25519-sk or ecdsa-sk SSH key, see: https://github.blog/2021-05-10-security-keys-supported-ssh-git-operations/#the-same-ssh-keys-you-already-know-and-love-just-a-little-different https://github.blog/2021-05-10-security-keys-supported-ssh-g...
Basically, the SSH key is stored on the hardware key, and for every single git pull/git push you need to do, you must have the security key plugged in. If you're worried about forgetting the key and leaving it plugged in, you could add a password to the SSH key as well, so you're doubly protected.