

The config should now look similar to mine:įetch = +refs/heads/*:refs/remotes/origin/* by copying in the link from the start page of the repository site and add /wiki behind. In the config file, only change the line url=. Open the wiki git repository config file with gedit gedit.

Now back to the terminal, navigate to the wiki base folder, to change your config file for the wiki git repository: cd Documents/scl-manips-wiki.git Navigate back to the start page of the repository, click on SSH to see the appropriate link and copy this link, see also the screenshot below: Change git config files for the ssh access Type in a label name of your choice and copy in your public key: Navigate to the repository site (well, you are already on it.)Īccess your personal account by clicking on your name: Or on a mac: pbcopy -sel clip < ~/.ssh/id_rsa.pub You will see your unique looking key fingerprint and key's randomart image.ĭisplay your generated RSA public ID file to see if it worked: cat ~/.ssh/id_rsa.pubĬopy your key to your clipboard with xclip -sel clip < ~/.ssh/id_rsa.pub It shows that your private key has been saved in /home/rkk/.ssh/id_rsa and the public key has been saved to: /home/rkk/.ssh/id_rsa.pub. Your public key has been saved in /home/rkk/.ssh/id_rsa.pub. The final output looks like this: Your identification has been saved in /home/rkk/.ssh/id_rsa. Type it once again: Enter same passphrase again: Type a passphrase that will be used to generate the RSA ID The following output will appear: Created directory '/home/rkk/.ssh'.Įnter passphrase (empty for no passphrase): You are asked to name a file in which to save your RSA ID, just hint 'Enter' to tell the program to save it to the default folder. The output of this command looks like this: Generating public/private rsa key pair.Įnter file in which to save the key (/home/rkk/.ssh/id_rsa): Generate ssh keysįirst, you need to generate a ssh -key, open a Terminal (Control+Alt+t) and type in: ssh-keygen -t rsa -b 4096 This allows you to securely communicate with the repository while not needing to type after every command your password.
#MAC GENERATE SSH KEY BITBUCKET PASSWORD#
If you do not want to type in your password when using git, you should set up a ssh key to communicate with the git repository. That’s it.View History Generate RSA ID and use ssh with bitbucket
#MAC GENERATE SSH KEY BITBUCKET INSTALL#
If xclip is not recognized, then install it using sudo apt-get install xclip Your identification has been saved in git_key. I have given the key a cd ssh-keygenĮnter file in which to save the key (/home/sohel/.ssh/id_rsa): git_keyĮnter passphrase (empty for no passphrase):
