I was trying to add the SSH key of my server in laravel-forge to bitbucket. The ssh key is usually located in ~/.ssh/id_rsa.pub
inside the laravel-forge terminal. Bitbucket did not allow me to add this. This is usually added in bitbucket by clicking 'Access Keys' under 'Settings'. The error message was: that key has already been added by a user
. But I could not find which other user in the team had added it. The bitbucket site could not show me which user had added it.
Asked
Active
Viewed 1,352 times
5

Pranay Aryal
- 5,208
- 4
- 30
- 41
1 Answers
3
I want to answer my own question so that it helps someone. After I contacted bitbucket, I came to know that a specific user had used that ssh key. All I did was create a new ssh key using ssh-keygen
command in the laravel-forge server terminal. I was successfully able to add this new ssh key for laravel-forge in bitbucket and I was able to deploy.

Pranay Aryal
- 5,208
- 4
- 30
- 41
-
1I think one of the things that also affects this is if you rename the machine after it's provisioned. – gidmanma Jun 08 '17 at 08:07
-
hi sir. laravel-forge server terminal means u ssh forge@yoursite.com inside you execute that ssh-keygen then it will automatically reflect on forge dashboard as new token? – Winston Fale May 17 '18 at 08:55