Setting up SSH keys for Bitbucket on Windows

后端 未结 7 1641
死守一世寂寞
死守一世寂寞 2021-02-05 12:35

First, I am an absolute noob with git, repos and command line. I have repo on Bitbucket and I basically want to be able to push to the repository via gitbash without entering a

7条回答
  •  自闭症患者
    2021-02-05 13:03

    Please follow the steps to add ssh key into bitbucket account to solve your issue.

    1. Open git bash terminal and enter the command ssh-keygen -t rsa -C "your email address"
    2. Enter passphrase (leave it blank) and enter
    3. Enter the same phrase again (leave it blank) and enter
    4. Copy the id_rsa.pub file content from where it is residing in your system (C:\Users\username\.ssh)
    5. Login to bitbucket account and click top right most user icon ->bitbucket settings->ssh keys under security menu then paste into key field and save it. 6.Restart your git bash terminal and enter git init command and add ssh git repository location git@bitbucket.org:username/repository_name.git which is present in your bitbucket repository.

    Enjoy!

提交回复
热议问题