0

How is it possible to register a public key to the regarding Bitbucket account and a private key on a remote server to enable pull requests without asking for a password?

Thanks in advance.

Jonas
  • 245
  • 2
  • 17
  • 2
    https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html – DilumN Jan 30 '17 at 08:42
  • I know to to use ssh to communicate between my local client and bitbucket. My problem is to use a private key on remote host. – Jonas Jan 30 '17 at 08:55
  • Then you need to configure ssh authentication in your remote host as well & add that key to the bitbucket too – DilumN Jan 30 '17 at 08:56
  • Yes of course. But how? – Jonas Jan 30 '17 at 09:04
  • Exactly the same way you already did locally. Generate a key pair remotely, download the public key to local and register it on Bitbucket as usual. – harmonica141 Jan 30 '17 at 09:26
  • I generated the key locally and added it manuelly to .ssh. This is the mistake, isn't it? – Jonas Jan 30 '17 at 09:34

1 Answers1

2

Solution:

  1. Be sure you have ssh installed
  2. Generate Keypair using ssh-keygen
  3. Check if ssh-agent is runnung by executing 'eval $(ssh-agent -s)'
  4. Add ssh-key to your ssh-agent using 'ssh-add [path-to-your-privatekey]'
  5. Add your publickey to you Bitbucket-Accountsettings

Attention: If you use puttygen and/or OpenSSH you need to follow this steps Convert key to OpenSSH format

Community
  • 1
  • 1
Jonas
  • 245
  • 2
  • 17