使用代理封装指定行定KEY
#add 1.
ssh-agent bash -c 'ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git'
#or 2.
ssh-agent $(ssh-add /somewhere/yourkey; git clone git@github.com:user/project.git)
References:
https://blog.csdn.net/zhouguoqionghai/article/details/92134462
https://zhuanlan.zhihu.com/p/126117538
.