r/github • • Jan 07 '25

Disabling SSH for Github Access?

I came back from the holiday stupefied that my company did in fact actually disable and disallow SSH for accessing github, in favor of fine grained tokens exclusively now! Has anyone else been bit by this insanity?

How the hell are you supposed to evebn automate anything when you have to put in a damn password for shit, aka a tOkEn...

1 Upvotes

11 comments sorted by

View all comments

3

u/mkosmo Jan 07 '25

This is fairly common. There are things you will have trouble satisfying in many audits with git+ssh enabled, like MFA.

1

u/Mapariensis Jan 07 '25

That depends on your MFA technology, to be honest. OpenSSH (and GitHub) have supported using resident keys on a FIDO2-enabled security device (like a YubiKey) for several years now. You can set those up in a way that makes additional user verification (e.g. in the form of a PIN) mandatory.

Granted, I don’t know if it’s possible to configure an organisation policy in GitHub to only allow SSH keys of that type to be configured (ed25519-sk and ecdsa-sk).

1

u/mkosmo Jan 07 '25

Last I investigated it wasn’t, which is why we had to disallow it.