I've searched quit a bit and found some simular topics, but no solution works for me
I have a few repositories on Bitbucket, some private and some in teams. I created a new repository (webroot) with a team (nskiv) as the owner. I added this one local with git remote add origin git@bitbucket.org:nskiv/webroot.git
I've added some files and pushed these to the repository. Then i connect to my server and when i try to pull i constantly have to enter my password. When i do it works fine, but it's annoying and unnecessary.
The strange part is that i nowhere use the HTTPS link. My local .git/config
looks like this:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = git@bitbucket.org:nskiv/webroot.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
On my server i'm logged in with my username (maurice) and copied (cat /home/maurice/.ssh/id_rsa.pub | pbcopy
) my key to the team's SSH key settings.
When i try to clone the repo (git clone git@bitbucket.org:nskiv/webroot.git
) i have to enter my password. But why?
Edit:
The solution was to activate the ssh agent with eval "$(ssh-agent -s)"
One step i forgot configuring my server