GitHubアップロードでsshを解決できません:ホストgithub.comポート22に接続してください:不正なファイル番号gitが正常に終了しませんでした(exi .. ..



Github Upload Can Not Solve Ssh



問題の状況

githubクライアントを使用していた場合、アップロード時間の問題の結果、Webサイトの観点に移動し、新しいプロジェクトが作成されましたが、コードは上がりませんが、どのようにアップロードされますか。そのため、コマンドラインを使用して解決する必要がありました。

Tortoisegitについて、次のように述べています。



git.exe push -v --progress 'xx' master:master Pushing to root@xxxxx:xxx/xxxx.git ssh: connect to host github.com port 22: Bad file number fatal: Could not read from remote repository. git did not exit cleanly (exit code 128)

gitbashでこれを言っていた

$ git status On branch master Your branch is based on 'origin/master', but the upstream is gone. (use 'git branch --unset-upstream' to fixup)

解決してみてください

問い合わせによって、彼は認証キーをbashしていないことがわかり、チュートリアルに従って、既存のキーをクエリします。



ls -al ~/.ssh clip <~/.ssh/id_rsa.pub

Id_rsaがgithub、githubの既存のサイトに追加され、チュートリアルの公式Webサイトに従って、元のsshid_rsaがマシンに追加されました。

eval '$(ssh-agent -s)' ssh-add ~/.ssh/id_rsa

しかし、実行ssh -T root@xxxxxまたは表示コマンドssh: connect to host github.com port 22: Bad file number

まだ解決されていないので、FAQの公式ウェブサイトでBadFileNumberを見ました。3つの方法があります。1つはhttpsを使用する方法、2つはファイアウォールに関する方法、問題が多すぎるようです。3つは取得したくないです。代わりにsshを使用します。 https
それがああなら私はhttpsを使用しているので、TortoiseGitを再試行するかどうかを試してください。
次に、3番目の方法を使用します。~/.ssh/configファイルが増加しますが、表示されるのはconfig file構成なしの場合、そのコピーの名前が変更されますconfig、次のコードを貼り付けます。

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

承認プロンプトの友達が成功した後に発生する可能性があります〜〜〜

The authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' can't be established. RSA key fingerprint is . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[ssh.github.com]:443,[192.30.253.123]:443' (RSA) to the list of known hosts. Hi ! You've successfully authenticated, but GitHub does not provide shell access.

プッシュして見て、ついに成功したララララ