ef-labs / stash-hook-mirror

An Atlassian Stash repository hook for mirroring to one or more remote git repositories.
MIT License
77 stars 58 forks source link

Mirror works with https, not with ssh #43

Open amedee opened 7 years ago

amedee commented 7 years ago

Bitbucket 4.10.1. Repository Mirror Plugin 2.0.0

When I use a ssh connection, for example git@github.com:itext/itextsharp.git, then mirroring doesn't work. When I change this to https connection, for example https://github.com/itext/itextsharp.git, then mirroring does work.

nathansgreen commented 7 years ago

Can you SSH from the bitbucket server to your remote host when logged in as the bitbucket user? (Default is atlbitbucket I think.)

adrianluisgonzalez commented 7 years ago

As @nathansgreen suggests, verify the github ssh key is being used by the bitbucket user.

You can try a manual mirror command: https://github.com/ef-labs/stash-hook-mirror/wiki#troubleshooting

patrick-compass commented 4 years ago

FYI - On windows, you cannot log in as the bitbucket user