禁止对特定仓库进行 Git SSH 访问
注意: 每个仓库自动从拥有它的组织或用户继承默认设置。 如果仓库所有者已在其所有仓库上强制执行设置,则您不能覆盖默认设置。
- From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page.

- 在搜索字段中,输入仓库的名称,然后单击 Search(搜索)。

- 在搜索结果中,单击仓库名称。

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

- 在页面的右上角,单击 Admin(管理员)。

- 在左侧边栏中,单击 Admin(管理员)。

- 在“Git SSH access”下,使用下拉菜单,然后单击 Disabled。

禁止对用户或组织拥有的所有仓库进行 Git SSH 访问
- From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page.

- 在搜索字段中,输入用户或组织的名称,然后单击 Search(搜索)。

- 在搜索结果中,单击用户或组织的名称。

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

- 在页面的右上角,单击 Admin(管理员)。

- 在左侧边栏中,单击 Admin(管理员)。

- 在“Git SSH access”下,使用下拉菜单,然后单击 Disabled。 然后选择 Enforce on all repositories。

Disabling Git SSH access to all repositories in your enterprise
- 访问
https://HOSTNAME/enterprises/ENTERPRISE-NAME,将HOSTNAME替换为您的实例的主机名,将ENTERPRISE-NAME替换为您的企业帐户的名称,找到您的企业帐户。
-
在企业帐户侧边栏中,单击 Settings(设置)。

-
Under " Settings", click Options.

-
在“Git SSH access”下,使用下拉菜单,然后单击 Disabled。 然后选择 Enforce on all repositories。
