Bitbucketのcloneで2回 同じ原因でエラー

Bitbucketを約1ヶ月ぶりに利用したのだが、cloneしたらエラーが発生。調査してみると確か前回も同じことでエラーがでた記憶があったので、忘れぬようにメモ
目次
エラー内容
サイトの表示通り cloneを実行

エラーが発生
git clone git@bitbucket.org:name/file.git
## 結果
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
下記のコマンドに変更すると成功
git clone https://name@bitbucket.org/name/file.git
-
前の記事
Ubuntu19.04にgitサーバーを構築 2019.08.28
-
次の記事
Ubuntu19.04にgitlabを構築 2019.08.28
コメントを書く