打算將私有 repo 提供唯讀權限給特定對象, 但 Github 的 personal access token 並不提供這樣針對特定 repo 的唯讀權限設定, 後來發現似乎可以使用 repo 內的 Deploy Key 來達成.
ssh -T [email protected]
ssh -T -i /home/mytest/deploy-key/abc1_id_rsa [email protected]
git clone [email protected]:iii-org/devops-ui.git
Host devops-ui github.com Hostname github.com IdentityFile /home/mytest/github-key/iiiorg-devops-ui_id_rsa User iii-org Host repo-b-shortname github.com Hostname github.com IdentityFile /home/mytest/github-key/repo-b_id_rsa #User username-on-remote-machine