Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 如何将代码签出仅限于特定的用户/机器组合_Git_Github_Ssh_Code Access Security - Fatal编程技术网

Git 如何将代码签出仅限于特定的用户/机器组合

Git 如何将代码签出仅限于特定的用户/机器组合,git,github,ssh,code-access-security,Git,Github,Ssh,Code Access Security,如何将git代码签出仅限于特定的用户/机器组合。我们的项目驻留在github中,用户使用SSH与github通信以访问代码 如果私钥被复制到另一台机器上(比如在他的家里),就有可能在另一台机器上下载源代码 我们在一个局域网环境中,我更愿意将代码访问严格限制在开发人员使用的单机上 我应该如何执行这一点 我应该如何执行这一点 不是从GitHub本身 只有一个私有的git repo托管服务器才能提供类似的服务 在这里,在组“junior devs”中注册的任何用户都可以访问repofoo,除非他们从1

如何将git代码签出仅限于特定的用户/机器组合。我们的项目驻留在github中,用户使用SSH与github通信以访问代码

如果私钥被复制到另一台机器上(比如在他的家里),就有可能在另一台机器上下载源代码

我们在一个局域网环境中,我更愿意将代码访问严格限制在开发人员使用的单机上

我应该如何执行这一点

我应该如何执行这一点

不是从GitHub本身

只有一个私有的git repo托管服务器才能提供类似的服务

在这里,在组“
junior devs
”中注册的任何用户都可以访问repo
foo
,除非他们从
192.168.48.0
访问它

repo foo
    RW+ VREF/FROM/192.168.48.0/23   =   @junior-devs
    -   VREF/FROM                   =   @junior-devs