key_load_public:SSHに接続すると、そのファイルやディレクトリはありません。

key_load_public:SSHに接続すると、そのファイルやディレクトリはありません。

Windows 10コンピュータがあり、そのコンピュータに接続してインターネット接続を使用したいと思います。

opensshだからインストールして実行してみました。を使用するとssh <username>@<pcname>エラーが発生します。

ssh_exchange_identification: read: Connection reset by peer

を使用すると、次のログがssh -v <usrename>@<PCname>表示されます。

 ~:$ ssh -v [email protected]
 OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips  1 Mar 2016
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug1: /etc/ssh/ssh_config line 19: Applying options for *
 debug1: Connecting to 192.168.1.100 [192.168.1.100] port 22.
 debug1: Connection established.
 debug1: identity file /home/senaps/.ssh/id_rsa type 1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_rsa-cert type -1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_dsa type -1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_dsa-cert type -1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_ecdsa type -1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_ecdsa-cert type -1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_ed25519 type -1
 debug1: key_load_public: No such file or directory
 debug1: identity file /home/senaps/.ssh/id_ed25519-cert type -1
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
 ssh_exchange_identification: read: Connection reset by peer

これらのファイルがないようですが、どうやって入手できますか?これはls私のディレクトリです:

 ~:$ ls -a .ssh
 .  ..  id_rsa  id_rsa.pub  known_hosts

この問題をどのように解決するのですか? (自分のコンピュータにアクセスできず、現在使用されているパブリックネットワークではなく、自分のコンピュータネットワークを介してトラフィックを送信したいと思います。)

以下はログです-vvv

~:$ ssh -vvv [email protected]
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g-fips  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "192.168.1.100" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.1.100 [192.168.1.100] port 22.
debug1: Connection established.
debug1: identity file /home/senaps/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/senaps/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
ssh_exchange_identification: read: Connection reset by peer

そして次のログtail -500 /var/log/auth.log | grep 'sshd'

Sep 22 08:23:29 SenapssPC sshd[2853]: Received SIGHUP; restarting.
Sep 22 08:23:29 SenapssPC sshd[2853]: Server listening on 0.0.0.0 port 22.
Sep 22 08:23:29 SenapssPC sshd[2853]: Server listening on :: port 22.
Sep 22 19:41:29 SenapssPC sudo:   senaps : TTY=pts/2 ; PWD=/home/senaps ; USER=root ; COMMAND=/bin/nano /etc/ssh/sshd_config
Sep 22 19:42:02 SenapssPC sudo:   senaps : TTY=pts/2 ; PWD=/home/senaps ; USER=root ; COMMAND=/bin/nano /etc/ssh/sshd_config

ベストアンサー1

おすすめ記事