Reputation: 301
I don't want my code to be accessible to developers who do not use SSH and instead use password for authentication. Is it possible to do on GitHub?
Upvotes: 0
Views: 64
Reputation: 76884
No, you cannot do this. However, if your goal is to prevent access by weak passwords and your repository is in an organization, you can require all organization members to have 2FA enabled.
Once that's the case, users will either have to use a token or an SSH key and will not be able to use a plain password.
Upvotes: 2