git - 如何将代码 checkout 仅限于某个用户/机器组合

标签 git github ssh code-access-security

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

如果将私钥复制到另一台机器(比如在他家),则可以在另一台机器上下载源代码。

我们在 LAN 环境中,我希望将代码访问严格限制在开发人员使用的单台机器上。

我应该如何执行这个?

最佳答案

How should I enforce this?



不是来自 GitHub 本身。

只有私有(private) git repo 托管服务器可以,并添加 authorization layer喜欢 gitolite , 报价 restriction from IP address
repo foo
    RW+ VREF/FROM/192.168.48.0/23   =   @junior-devs
    -   VREF/FROM                   =   @junior-devs

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

关于git - 如何将代码 checkout 仅限于某个用户/机器组合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23841732/

相关文章:

ubuntu - 远程 : hooks/update:11: undefined method `require_relative' for main:Object (NoMethodError)

GitHub 自述文件图像损坏 - "violates the following Content Security Policy directive: "img-src 'self'“

github - 我可以使用逻辑运算符 OR 搜索 github 标签吗?

session - 退出 SSH session 后保留 sbt 进程的最合适方法?

amazon-web-services - 无法连接到 EC2 - ssh : connect to host port 22: Connection refused

GIT 警告 : too many files skipping inexact rename detection

git - 每台开发机都需要安装服务器来推送代码到GitHub吗?

java - Eclipse git 插件和获取当前分支的方法 - 将 id 提交到 Java 代码版本信息字符串

python - Paramiko Authentication验证(原来是Python异常处理)

git - 如何在 cygwin 上构建和使用最新版本的 git?