Skip to main content

Disabling Git SSH access on your enterprise

You can prevent people from using Git over SSH for certain or all repositories on your enterprise.

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.

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  3. In the search field, type the name of the repository and click Search. Site admin settings search field

  4. In the search results, click the name of the repository. Site admin settings search options

  5. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  6. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  7. In the upper-right corner of the page, click Admin. Admin Tools

  8. In the left sidebar, click Admin. Admin Tools

  9. Under "Git SSH access", use the drop-down menu, and click Disabled. Git SSH access drop-down menu with disabled option selected

Disabling Git SSH access to all repositories owned by a user or organization

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  3. In the search field, type the name of the user or organization and click Search. Site admin settings search field

  4. In the search results, click the name of the user or organization. Site admin settings search options

  5. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  6. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  7. In the upper-right corner of the page, click Admin. Admin Tools

  8. In the left sidebar, click Admin. Admin Tools

  9. Under "Git SSH access", use the drop-down menu, and click Disabled. Then, select Enforce on all repositories. Git SSH access drop-down menu with disabled option selected

Disabling Git SSH access to all repositories in your enterprise

  1. In the top-right corner of GitHub Enterprise Server, click your profile photo, then click Enterprise settings. "Enterprise settings" in drop-down menu for profile photo on GitHub Enterprise Server

  2. In the enterprise sidebar, click Policies. Policies tab in the enterprise account sidebar

  3. Under Policies, click Options. Options tab in the enterprise account settings sidebar

  4. Under "Git SSH access", use the drop-down menu, and click Disabled. Then, select Enforce on all repositories. Git SSH access drop-down menu with disabled option selected