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 [email protected]: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 = [email protected]: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 [email protected]: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
Probably the answer is that you do not have an SSH agent running. I would go through these steps and make sure you have an SSH agent running and that you have added your key to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With