Git clone using SSH always require password

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

A user creates a test repo, with public key and SSH enabled, but

$ git clone git@192.168.99.100:7999:repo1
Cloning into 'repo1'...
git@192.168.99.100's password:

 

A password authentication is required and cloning is not possible.

原因

The address the user is trying to clone is different to what the application expects.

 

As written on Enabling SSH access to Git repositories in Bitbucket Server, the SSH URL should be similar to:

ssh://git@<SSH_BASE_URL>/<projectname>/<reponame>.git

ソリューション

The correct SSH URL that you should be using for a git clone operation should be available through the Bitbucket server UI when you browse through the repo, click on ... and then Clone:


 

If you are doing that correctly, please review Set up SSH for Git.

最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.