Shakil Ahmed
Shakil Ahmed

Reputation: 301

Allow repository access only to collaborators who use SSH for authentication on GitHub

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

Answers (1)

bk2204
bk2204

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

Related Questions