Don't use PuTTY to generate the key. Create a new key with ssh-keygen in. Leave passwords blank. Open that new key in PuTTY. Copy and paste it into the Bitbucket Key field. It should work. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 5 years, 8 months ago. Active 2 years, 9 months ago. Viewed 42k times. What I have : A repository on Bitbucket with the code already set up.
A local directory where the repository is cloned. A public key and a private key generated via PuTTY. Alex 13 13 silver badges 23 23 bronze badges. Sujan Sundareswaran Sujan Sundareswaran 1, 2 2 gold badges 8 8 silver badges 22 22 bronze badges. Try following the steps given in this page: confluence.
It would always still ask for the password. Add a comment. Active Oldest Votes. Please follow the steps to add ssh key into bitbucket account to solve your issue. Restart your git bash terminal and enter git init command and add ssh git repository location git bitbucket. Nimesh Madhavan 6, 6 6 gold badges 42 42 silver badges 55 55 bronze badges.
Rajesh Kumar Rajesh Kumar 4 4 silver badges 8 8 bronze badges. If you see "No such file or directory", then there aren't any existing keys: go to step 3. If there are existing keys, you may want to use those: go to either SSH user keys for personal use or SSH access keys for system use. If you have existing SSH keys, but you don't want to use them when connecting to Bitbucket, you should back those up. Note that the ssh-keygen command is only available if you have already installed Git with Git Bash.
You'll see a response similar to this:. Enter, and re-enter, a passphrase when prompted. The whole interaction will look similar to this:. Open your. You may see an email address on the last line. It doesn't matter whether or not you include the email address.
Enter a Label for your new key, for example, Default public key. Paste the copied public key into the SSH Key field. Click Save. Bitbucket sends you an email to confirm the addition of the key.
Return to the command line and verify your configuration and username by entering the following command:. The command message tells you which of your Bitbucket accounts can log in with that key. If you get an error message with Permission denied publickey , check the Troubleshoot SSH issues page for help. After you add a key, you can edit the key's Label but not the key itself. To change the key's contents, you need to delete and re-add the key.
From the terminal, enter ssh-keygen at the command line. The command prompts you for a file to save the key in:. We recommend you keep the default key name unless you have a reason to change it. To create a key with a name or path other than the default, specify the full path to the key. For example, to create a key called my-new-ssh-key , enter a path like the one shown at the prompt:. Enter and re-enter a passphrase when prompted. The whole interaction will look similar to the following:. The key fingerprint is: 4ccf:9d:dce:c0:cf:b emmap1 myhost.
In your terminal window, copy the contents of your public key file. On macOS, the following command copies the output to the clipboard:. Select and copy the key output in the clipboard. If you have problems with copy and paste, you can open the file directly with Notepad.
Select the contents of the file just avoid selecting the end-of-file characters. You may see an email address on the last line when you paste. It doesn't matter whether or not you include the email address in the Key. Return to the terminal window and verify your configuration and username by entering the following command:. Use this section to generate an SSH key using Sourcetree. When you create an SSH key with Sourcetree, you can save the public and private key wherever you want locally.
Click the. Refer to the Install Sourcetree page for more details. Click No if you don't have one and want to use Sourcetree to create one. If you don't connect your account during set up, click Remote to open the Remote repositories page and click Add an account. As the SSH key generates, hover your mouse over the blank area in the dialog.
0コメント