git@github.com Permission denied (publickey).
ssh -T git@github.com
1 | git config --global user.name "usernme" |
Quick setup
Get started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line
1 | echo "# whatever you write" >> README.md |
…or push an existing repository from the command line
1 | git remote add origin https://github.com/***/***.git |
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.import
https://github.com/`username/repo`/import
ssh -v git@github.com
1 | debug1: SSH2_MSG_SERVICE_ACCEPT received |
解决办法:
1、修改私钥名称为默认:id_rsa
2、指定私钥名称
vim ~/.ssh/config
1 | Host github.com |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 热带雨林!
评论