Disabling Git SSH access on GitHub Enterprise Server
You can prevent people from using Git over SSH for certain or all repositories on your GitHub Enterprise Server instance.
In this article
- Disabling Git SSH access to a specific repository
- Disabling Git SSH access to all repositories owned by a user or organization
- Disabling Git SSH access to all repositories on an appliance
Disabling Git SSH access to a specific repository
Note: Each repository automatically inherits default settings from the organization or user that owns it. You cannot override the default setting if the repository's owner has enforced the setting on all of their repositories.
-
In the upper-right corner of any page, click .
-
In the search field, type the name of the repository and click Search.
-
In the search results, click the name of the repository.
-
In the upper-right corner of any page, click .
-
In the upper-right corner of the page, click Admin.
-
In the left sidebar, click Admin.
-
Under "Git SSH access", use the drop-down menu, and click Disabled.
Disabling Git SSH access to all repositories owned by a user or organization
-
In the upper-right corner of any page, click .
-
In the search field, type the name of the user or organization and click Search.
-
In the search results, click the name of the user or organization.
-
In the upper-right corner of any page, click .
-
In the upper-right corner of the page, click Admin.
-
In the left sidebar, click Admin.
-
Under "Git SSH access", use the drop-down menu, and click Disabled. Then, select Enforce on all repositories.
Disabling Git SSH access to all repositories on an appliance
-
In the upper-right corner of any page, click .
-
In the left sidebar, click Business.
-
Under your business account's name, click Settings.
-
In the left sidebar, click Options.
-
Under "Git SSH access", use the drop-down menu, and click Disabled. Then, select Enforce on all repositories.