Warm tip: This article is reproduced from stackoverflow.com, please click
bitbucket forge git github laravel-forge

Issue when using laravel forge with bitbucket

发布于 2020-05-19 11:56:44

When using bitbucket with forge, you have to follow this message in order to use bitbucket and forge

When using a custom Git deployment or Bitbucket, you must add the following SSH key to your source control provider before installing repositories:

The problem is this is not clear where do i put the ssh key, there's a million place in bitbucket that you could add a ssh key to so. so please can some one explain to me why when using bitbucket i need to add these ssh keys and where should i put them.

Some back story i was following a tutorial about deployment with forge and he used github and linked his repo with the forge Site, when i tried doing this using bitbucket it kept failing because the ssh of course it will fail, it need access to that repo by ssh. but how when using github you don't need ssh keys ?

Questioner
Mohammad hayajneh
Viewed
65
Sehdev 2020-03-04 21:50

You need to add ssh keys on your bitbucket account.

bitbucket account-> Settings->SSH Keys

Bitbucket Server administrators can set up SSH access keys to secure the Git operations that other systems perform on the repositories managed in Bitbucket Server.

Using access keys avoids the need to store user credentials on another system, and means that the other system doesn't have to use a specific user account in Bitbucket Server.

For example, access keys can be used to allow your build and deploy server to authenticate with Bitbucket Server to check out and test source code.

Reference:

https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-add-an-SSH-key-as-opposed-to-a-deployment-keys/qaq-p/413373

https://confluence.atlassian.com/bitbucketserver/ssh-access-keys-for-system-use-776639781.html

enter image description here