私はBitBucket
アカウントを持っています。コンピューター上でssh key
を設定して、私のbitbucket
アカウントでそれを追加するにもかかわらず、私は接続に失敗:bitbucketアカウント用のssh-keysを設定する(mac osxを使用)
$ git clone [email protected]:my-account/myrepo.git
Cloning into 'myrepo'...
conq: repository does not exist.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
私は次のようでした:
$ cd ~/.ssh
$ ssh-keygen -f ~/.ssh/my-key -N ''
$ vim config
Host bitbucket.org
HostName bitbucket.org
IdentityFile ~/.ssh/my-key
$ ls -l
-rw------- 1 me ... 229 Jul 8 15:50 config
-rw------- 1 me ... 1679 Jul 8 14:07 my-key
-rw-r--r-- 1 me ... 411 Jul 8 14:07 my-key.pub
それから私は私のキーの内容を追加しました私のビットバケットアカウントのssh key
にある.pub。その後、私は私のrepository
のクローニング再試行:私は別のマシン上で同じ手順を繰り返し
$ git clone [email protected]:my-account/myrepo.git
Cloning into 'myrepo'...
conq: repository does not exist.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
、それが働いた:
$ git clone [email protected]:my-account/myrepo.git
Initialized empty Git repository in /home/me/.ssh/myrepo/.git/
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
は、私は今、私の最初のマシンで同じことを行う必要があります。 、私は最初のマシン上の異なる何であるか見当がつかない
$ git clone [email protected]:my-account/myrepo.git
Cloning into 'myrepo'...
conq: repository does not exist.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
:
$ eval `ssh-agent -s`
$ ssh-add ~/.ssh/my-key
しかし、まだ運: は、最後の手段として、私はいくつかは、ssh-agentの使用して、ネット上の助言に続きますなぜそれは私の要求を拒否するのですか?コピーされた
id_rsaと
$ ssh-keygen -t rsa
enterx3
を生成するキーの正確な内容を:D.Samchuk
により示唆されるように
EDITもちろん1
私は、非常に基本的な方法、それをやってみました
$ cat ~/.ssh/id_rsa.pub
そして、私はBitBucketアカウントのsshキーにid_rsa.pubのコンテンツを追加しました。
私はリポジトリへのアクセスを許可しません。上記と同じ出力エラーメッセージが表示されます。
EDIT 2
私は多分それは、MAC構成に関連している見当がつかない?他のマシンはredhat linux
なので、私は疑問に思っただけですが、報告された同様の問題は見つかりませんでした。
私はプログラミングに関するものではないので、この質問をトピックとして閉じようとしています。試してみてください。https://apple.stackexchange.com – Droppy
ご迷惑をおかけして申し訳ありませんが、私は同意します。 – kaligne