This version of GitHub Enterprise was discontinued on 2021-06-09. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

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, click in the upper-right corner of any page. Rocketship icon for accessing site admin settings
  2. In the search field, type the name of the repository and click Search. Site admin settings search field
  3. In the search results, click the name of the repository. Site admin settings search options
  4. From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page. Rocketship icon for accessing site admin settings
  5. In the upper-right corner of the page, click Admin. Admin Tools
  6. In the left sidebar, click Admin. Admin Tools
  7. 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, click in the upper-right corner of any page. Rocketship icon for accessing site admin settings
  2. In the search field, type the name of the user or organization and click Search. Site admin settings search field
  3. In the search results, click the name of the user or organization. Site admin settings search options
  4. From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page. Rocketship icon for accessing site admin settings
  5. In the upper-right corner of the page, click Admin. Admin Tools
  6. In the left sidebar, click Admin. Admin Tools
  7. 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. Navigate to your enterprise account by visiting https://HOSTNAME/enterprises/ENTERPRISE-NAME, replacing HOSTNAME with your instance's hostname and ENTERPRISE-NAME with your enterprise account's name.
  1. In the enterprise account sidebar, click Settings. Settings tab in the enterprise account sidebar

  2. Under " Settings", click Options. Options tab in the enterprise account settings sidebar

  3. 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