
Ich habe einen Windows 10-PC, mit dem ich eine Verbindung herstellen und dessen Internetverbindung nutzen möchte.
Ich habe es also installiert openssh
und es läuft. Wenn ich benutze ssh <username>@<pcname>
, erhalte ich eine Fehlermeldung:
ssh_exchange_identification: read: Connection reset by peer
Und wenn ich verwende ssh -v <usrename>@<PCname>
, erhalte ich dieses Protokoll:
~:$ 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
Anscheinend habe ich diese Dateien nicht, aber wie bekomme ich sie? Hier ist eine ls
in meinem Verzeichnis:
~:$ ls -a .ssh
. .. id_rsa id_rsa.pub known_hosts
Wie kann ich dieses Problem beheben? (Ich nehme an, ich habe keinen Zugriff auf meinen PC und möchte meinen Datenverkehr über mein PC-Netzwerk und nicht über das öffentliche Netzwerk senden, in dem ich mich befinde.)
hier ist ein -vvv
Protokoll:
~:$ 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
und ein Protokoll von 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