Open julesnuggy opened 1 year ago
Interestingly - I think if we were to have a separate guide for linux - we could just remove the section of renaming the ssh key and leave it as id_rsa
. Git will by default attempt to use a few different keys held within the .ssh
directory.
Personally, I don't have a config file on my linux box. I have a few different keys (github, gitlab, etc) and git seems to work just fine
TBH I don't know why we have the config setting at all. I don't have one for my windows machine either and just leave it at id_rsa for SHA256. 🤷
GitHub SSH setup is different for Linux compared to MacOS or Windows.
SSH config file:
id_rsa
togithubkey
.PreferredAuthentications
is necessary (like we use for Windows)UseKeychain
is NOT valid for Linux (like it is for MacOS)Guide: https://www.baeldung.com/linux/ssh-private-key-git-command Full list of config properties: https://man7.org/linux/man-pages/man5/ssh_config.5.html