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

In this guide

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. Sign in to your GitHub Enterprise instance at http(s)://HOSTNAME/login.

  2. Site admin settings search fieldIn the search field, type the name of the repository and click Search.

  3. Site admin settings search optionsIn the search results, click the name of the repository.

  4. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  5. Admin ToolsIn the upper-right corner of the page, click Admin.

  6. Admin ToolsIn the left sidebar, click Admin.

  7. Git SSH access drop-down menu with disabled option selectedUnder "Git SSH Access", use the drop-down menu, and click Disabled.

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

  1. Sign in to your GitHub Enterprise instance at http(s)://HOSTNAME/login.

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

  3. Site admin settings search optionsIn the search results, click the name of the user or organization.

  4. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  5. Admin ToolsIn the upper-right corner of the page, click Admin.

  6. Admin ToolsIn the left sidebar, click Admin.

  7. Git SSH access drop-down menu with disabled option selectedUnder "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

  1. Sign in to your GitHub Enterprise instance at http(s)://HOSTNAME/login.

  2. Rocketship icon for accessing site admin settingsIn the upper-right corner of any page, click .

  3. Admin Center tabIn the left sidebar, click Admin center.

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