markdown SSH Bitbucket

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown SSH Bitbucket相关的知识,希望对你有一定的参考价值。



## Setup SSH

Check if you have keys already, you want id_rsa.pub:

    ls -a ~/.ssh

If it's there, copy it's contents and go to bitbucket > Manage accounts > ssh

If not create a pair then go put it there.

    ssh-keygen -t rsa

You'll be promted for a name - use a unique reference.

A new pair also needs adding to your ssh client. Secound adds to keychain so we have it for soucetree

    ssh-add ~/.ssh/id_rsa
    ssh-add -K ~/.ssh/id_rsa


You might need to start the agent

    eval `ssh-agent -s`

Go to your git folder and look at this file.

    cat .git/config

if under remote origin url is a htts then you need to get the ssh address.
go to the bitbucket project and grab the clone url for ssh
Then put that as the url instead

Copy the rsa file with this (mac)

    pbcopy < ~/.ssh/id_rsa.pub

That should be it. For more information, go here:    

    https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git

以上是关于markdown SSH Bitbucket的主要内容,如果未能解决你的问题,请参考以下文章

Bitbucket - 在哪里可以找到存储库 SSH 密钥?

无法使用 SSH 从 BitBucket 克隆

bitbucket 错误的 ssh 密码

无法使用 IPv6 通过 SSH 推送/拉取 bitbucket

Bitbucket 权限被拒绝(公钥)。但适用于 ssh

markdown 通过Webhook进行代码部署(Bitbucket)