gitでssh_exchange_identificationを取得するのはなぜですか:リモートホストによって接続が閉じられましたか?

停止しました

ターミナルからレポを複製する:

git clone [email protected]:barrepo.git
Cloning into 'foorepo'...
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

私は、上のステップに続いてきた発電をしてSSHキーを追加するが、とき、私は私のSSH接続をテスト私は、同じ結果になります。

ssh -T [email protected]:
ssh_exchange_identification: Connection closed by remote host

詳細を使用する

ssh -v [email protected]
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/Fred/.ssh/config
debug1: /Users/Fred/.ssh/config line 18: Applying options for *
debug1: /Users/Fred/.ssh/config line 27: Applying options for github.foohost.com
debug1: /Users/Fred/.ssh/config line 41: Applying options for *.foohost.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Executing proxy command: exec ssh -q b.snc1 nc github 22
debug1: identity file /Users/Fred/.ssh/baz_rsa type 0
debug1: identity file /Users/Fred/.ssh/baz_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
ssh_exchange_identification: Connection closed by remote host

httpsを使用してリポジトリのクローンを作成できますが、その後は他のアクション(チェックアウト/プッシュ...)を実行できません。

これを引き起こす可能性のあるものやそれを修正する方法についての提案はありますか?

停止しました

私の場合、これはVPN接続がないことが原因でした。

また、@ YesThatIsMyNameはコメントしました:

より詳細な出力を得るには、ssh-vなどのこのWebサイトの手順を試すことができます。PS詳細な出力で質問を更新できます。

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

Related 関連記事

ホットタグ

アーカイブ