明らかに、現在位置しているイランからbitbucketにアクセスする際にいくつかの問題があります。これは、gitワークフローとそのウェブサイトの両方に関係しています。これは検閲ではなく、検閲はページの出力を「実際の検閲」に置き換えます。ここで、私はタイムアウトを取得し、次の私はプルしようとしています:Git(bitbucket):既存のリポジトリにsshトンネルを引き出します
ssh: connect to host bitbucket.org port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
私はpingを実行してsshをすることができ、ヨーロッパ内の別のコンピュータを持っているので、私はその1つの通過引っ張っ思いました。私はMac OSです。私は、次のことを試してみました:
オープン1つのターミナルウィンドウと
ssh -L 3333:bitbucket.org:22 [email protected] -N
開き、別のターミナルウィンドウを
.git/config
に入るとurl = [email protected]:3333/project.git
を置き換えるしかし、私は
を取得しますssh: connect to host localhost port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
私は本当にひどいインターネットの背後にあるので、プロジェクトを最初からクローンしないで、私がすでにローカルに持っているリポジトリを使用してプロジェクトを更新することが重要です。何が価値があるために
- それはデバッグコマンドの場合は、ここでコメンテーターのコマンドからの出力です:
$ ssh -vvv [email protected]
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to bitbucket.org [104.192.143.2] port 22.
debug1: connect to address 104.192.143.2 port 22: Operation timed out
'ssh -vvv bitbucket.org'またはむしろ' ssh -vvv git @bitbucket.org'となります。 – Jakuje
@Jakuje申し訳ありませんが、どうしたらいいのか分かりません。これはデバッグコマンドですか、それを.git/configに入れるべきですか? – FooBar
sshトンネルはlocalhost:3333ポートをssh-host:22ポートにトンネルし、bitbucket.orgにはトンネルしません。ヨーロッパの自分のサーバーにリポジトリがないので、そこからクローンを作成することはできません。最初にサーバー上でBitbucketレポをミラー化してから複製することができます。 –