I have Bitbucket server running on an AWS ubuntu instance. I have my local repo on my Windows laptop and I sync with a local VirtualBox ubuntu VM. I can push and pull from the command line on ubuntu. I am very at home on Linux so I have no issue with remotes, upstream and ssh keys.
However, I have no idea how to push/pull on the Windows command line.
PS C:\> git branch -vv
* feature 34cd7bc [origin/feature: ahead 4] more git aliases
master 2e87266 [origin/master: ahead 1] config file updates
I am not logged onto Windows as the same user that I use on ubuntu that has access to bitbucket server. How do I tell git on windows to connect as a specific user and tell it which private key to use? I have loaded the private keys in pageant.
I have tried (note. ip address redacted)
PS C:\> git push ssh://email@example.com:7999/~git/project1.git
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
It depends on how your profile is set up. If it defaults to %userprofile%, then just add the .ssh directory under there. If your IT have your user profile somewhere else then under c:\users you can find out where ssh is looking for the key by running this command:
ssh -vT <bitbucket URL>
Leave out the port number, and at the end of the output from ssh it will ask you to log on, just exit the command without doing that.
Thanks as per above my key is already here
I will test ssh later but I do not expect that to work because I do not have my public key on the bitbucket host. I do not see why I would need it on the host. I have of course added the public key into my account in bucket server.
I'm having a similar issue with Bitbucket Server. Is it possible that this has something to do with a recent security patch?
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events