You can disable Git SSH access to certain or all repositories on a GitHub Enterprise appliance to prevent people from using Git over SSH to access repositories.
In this guide
- 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.
Sign in to your GitHub Enterprise instance at
http(s)://[hostname]/login
.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.
In the "Git SSH Access" menu, select Disabled.
Disabling Git SSH access to all repositories owned by a user or organization
Sign in to your GitHub Enterprise instance at
http(s)://[hostname]/login
.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.
In the "Git SSH Access" menu, select Disabled and click Enforce on all repositories.
Disabling Git SSH access to all repositories on an appliance
Sign in to your GitHub Enterprise instance at
http(s)://[hostname]/login
.In the upper-right corner of any page, click .
In the left sidebar, click Admin center.
In the "Git SSH Access" menu, select Disabled and click Enforce on all repositories.