
gitlab.comのリポジトリに接続しようとしています。
家にいるときや職場にいるときは、ラップトップで実行されます。私はsshを使い、gitlabにsshキーを追加しています。
数日前、突然在宅勤務を中止しました。私が受け取った内容は次のとおりです。
$ git pull
Connection closed by 54.93.71.23
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
私の仕事のネットワーク、同じラップトップでSSHを使用すると正常に動作します。
これでhttpsに切り替えて、ほとんどの場合動作しますが、時々動作が停止し、次のような結果が表示されます。
fatal: The remote end hung up unexpectedly
error: RPC failed; result=56, HTTP code = 0
私が作業しているところによると、30分後に同じ変更をコミットしようとしても、これは決して起こりません。
SSHにはどんな問題がありますか?私はルータファイアウォールの背後にありますか?または、プロバイダが何かを変更しましたか?
編集1:git pullの出力、私の.ssh/configにLogLevel DEBUG3を追加します。
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: setup [email protected]
debug1: kex: server->client aes128-ctr [email protected] none
debug2: mac_setup: setup [email protected]
debug1: kex: client->server aes128-ctr [email protected] none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection closed by 54.93.71.23
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
編集2: https接続は時々中断されますが、複数回テストした後はMTUの問題はありません。ベンダーにいくつかのエラーがある可能性があります。 GithubとBitbucketはSSHで非常にうまく機能します。
ありがとうございます!
答え1
/etc/ssh/ssh_config を編集して、次の操作を行います。
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160