Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private

composer提示

Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private

https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+服务器名称+2018-07-08+0803这个地址重新生成一下token,点击regenerate,复制生成的token

  然后放到auth.json文件里(文件须有写入的权限)

    "github-oauth": {
        "github.com": "这里填token"},

  保存就可以了。

  也可以用第二种方法:composer config –global –auth github-oauth.github.com token系列号

You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"

  看看auth.json文件是不是变了

  再看看composer安装是不是已经可以了

From:https://www.cnblogs.com/huanhang/p/14781986.html