GNU/Linux >> Linux の 問題 >  >> Linux

Ssh –サーバーにSSHで接続してKey_load_publicを取得しようとしています:そのようなファイルまたはディレクトリエラーはありませんか?

Macからリモートサーバーへのパスワードなしのssh接続を作成しました。動作し(!)、ターミナルを閉じて再度開き、再試行して、次の情報を取得しました(ユーザー名、my_ipは本物ではありません):

ssh -vvv [email protected]_ip
OpenSSH_7.2p2, LibreSSL 2.4.1
debug1: Reading configuration data /Users/Me/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug2: resolving "my_ip" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to my_ip [my_ip] port 22.
debug1: Connection established.
debug1: identity file /Users/Me/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Me/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Me/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Mes/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Me/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Me/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Me/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Me/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2
ssh_exchange_identification: read: Connection reset by peer

.sshを確認したとき フォルダ、id_rsa そこにいましたが、他の誰もいませんでした。エラーから、どういうわけかこれらのファイルを作成する必要があるようですが、その方法がわかりません。

助けていただければ幸いです。

承認された回答:

debug1: key_load_public: No such file or directory

上記の行はエラーではありませんが、sshという単純なデバッグログです。 クライアントは個別の公開鍵(~/.ssh/id_rsa.pubという名前)を見つけることができません )。このファイルはリモートサーバーに接続するために必要ではありませんが、役立つ場合があります。

実際のエラー

ssh_exchange_identification: read: Connection reset by peer

サーバー構成のエラーを示します。サーバーは実行されていますが、SSH接続を受け入れることができません。詳細については、サーバーログを確認してください。同様の問題


Linux
  1. エラー:xenstore-読み取り:xs_open:DomUにそのようなファイルまたはディレクトリはありません[解決済み]

  2. エラー:Xend Start – / proc / xen /capabilities:そのようなファイルまたはディレクトリはありません[解決済み]

  3. 致命的なエラーopenssl/evp.h:そのようなファイルまたはディレクトリはありません:[解決済み]

  1. 致命的なエラーopensslerr.hを修正–そのようなファイルまたはディレクトリはありません[OpenCA]

  2. バイナリ実行時の No such file or directory エラー

  3. ENOENT が No such file or directory を意味するのはなぜですか?

  1. Bash:そのようなファイルやディレクトリはありませんか?

  2. 致命的なエラー:cuda.h:そのようなファイルまたはディレクトリはありません

  3. logrotate でログをローテーションできず、No such file エラーが発生する