3

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

Community
  • 1
  • 1
Maurice
  • 1,082
  • 1
  • 20
  • 43
  • 2
    Does your private key have a passphrase? Do you have an SSH agent running? What's the output of `ssh git@bitbucket.org -v`? – robert Oct 08 '15 at 13:29
  • @robert Thank i just recreated my ssh key without passphrase and not i do not have to enter my password anymore! – Louwki Dec 02 '16 at 05:53

1 Answers1

5

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.

Garrett
  • 699
  • 5
  • 19