ssh bitbucket github

来源:互联网 发布:云豹直播源码安装 编辑:程序博客网 时间:2024/06/06 02:08
$ ssh-keygen -t rsa -C "mac"$ vi ~/.ssh/configHost bbUser          gitHostName      bitbucket.orgIdentityFile  ~/.ssh/id_rsa如果是github,则Host githubUser gitHostName github.comIdentityFile ~/.ssh/id_rsa$ chmod 600 ~/.ssh/config$ chmod 600 ~/.ssh/id_rsa在bitbucket.org添加public key$ ssh bbYou can use git or hg to connect to Bitbucket. Shell access is disabled.Connection to bitbucket.org closed.如果是github,则$ ssh github$ git clone git@bitbucket.org:...

0 0