リモートホストがgithub.comへの接続を終了しました。

リモートホストがgithub.comへの接続を終了しました。

問題はレポートとまったく同じです。

しかしそれはいいえ"ssh_exchange_identification:" エラー、つまり、次に関連しています。SSHサーバー:突然「リモートホストで接続が切断されました」理由一つ。

私はそれを行うとそれを得ますssh -T

$ ssh -T [email protected]
Connection to github.com closed by remote host.

使用すると、次のメッセージが生成されます。ssh -vvv

debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 32000 rmax 35000
debug3: send packet: type 1
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r43 i0/0 o0/0 fd 5/6 cc -1)
Connection to github.com closed by remote host.

ログ全体(および一般ログとの違い)を次の場所に配置しました。 https://www.diffchecker.com/LF2ZEb8j

たとえば、ログの違いを次のように入力しました。ssh -vvT [email protected]
https://www.diffchecker.com/WjmA7P0c
それから奪うことはあまりありません。

繰り返しますが、上記の問題は私のリモートサーバーであるバージョン1に接続するために発生します。1:7.6p1-4ubuntu0.7このサーバーは数年間動作していましたが、今は数週間ダウンしています。私の家のコンピュータ(バージョン:)でテスト/接続することは1:8.4p1-5常に大丈夫です。

コメント?
私のopenssh-client 1:7.6p1-4ubuntu0.7はgithub.comに比べて古すぎますか?

$ apt-cache policy openssh-client
openssh-client:
  Installed: 1:7.6p1-4ubuntu0.7
  Candidate: 1:7.6p1-4ubuntu0.7
  Version table:
 *** 1:7.6p1-4ubuntu0.7 500
        500 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:7.6p1-4ubuntu0.5 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages 
     1:7.6p1-4 500
        500 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

ベストアンサー1

これ私のために働く

HTTPSによるSSH接続の有効化

[email protected]ポートにSSHで接続できる場合は、443SSH設定をオーバーライドして、GitHub.comへのすべての接続がそのサーバーとポートを介して実行されるようにすることができます。

SSH設定ファイルでこれを設定するには、次の場所にあるファイルを編集して~/.ssh/config次のセクションを追加します。

Host github.com
Hostname ssh.github.com
Port 443
User git

GitHub.comに再接続して、これが機能しているかどうかをテストできます。

$ ssh -T [email protected]
> Hi USERNAME! You've successfully authenticated, but GitHub does not
> provide shell access.

HTTPSポートを介したSSHの使用

git clone ssh://[email protected]:443/USER_NAME/REPO_NAME.git

おすすめ記事