【Azure 应用服务】App Service For Linux 环境中,如何从App Service中获取GitHub私有库(Private Repos)的Deploy Key(RSA key)呢? - LuBu0505/My-Code GitHub Wiki
为App Service For Linux配置CI/CD,源代码在GitHub私有库中,在发布时候报错 Cannot find SourceControlToken with name Bitbucket. 这样的情况如何来解决呢?在参考了文章
得知需要在GitHub/Bitbucket/GitLab中配置Deploy Key。 那么我们如何来获取这个Key呢?
https://<$用户名>:<密码>@<站点名>.scm.chinacloudsites.cn/api/sshkey?ensurePublicKey=1
- <用户名>:使用第一步中的UserName代替,注意,只需要 后面的部分,需要包含符号
- <密码> :第一步截图中的Password内容
- <站点名> :当前Web App的名称
curl https://$xxxxx:[email protected]/api/sshkey?ensurePublicKey=1
登录到SSH页面:https://yourappservicename.scm.chinacloudsites.cn/webssh/host
# find / -name .ssh
# cd /home/xxxxxxxxxxxxxxxxxxx??????????????????/.ssh
# ls -l
查找截图:
1:https://erikschlegel.com/2015/06/20/azure-continuous-deployment-using-git-private-repos/
当在复杂的环境中面临问题,格物之道需:浊而静之徐清,安以动之徐生。 云中,恰是如此!
分类: 【Azure 应用服务】
标签: App Service, App Service for Linux, 获取GitHub私有库(Private Repos)的Deploy Key