2x DSL Lite (also kein IPv4 mehr), es soll aber eine SSH-Verbindung zwischen beiden hergestellt werden. Wie geht das?
Das habe ich versucht: vom entfernten "remotePC" einen revers-tunnel auf den Web-Server:
Code: Alles auswählen
remotePC# ssh -R *:2099:localhost:22 root@meinWebserver.de
Wie schalte ich jetzt ein Tunnel von meinPC auf den Webserver Port 2099? - Ein
Code: Alles auswählen
meinPC# ssh -L 2222:localhost:2099 root@meinWebserver.de
oder statt localhost die feste IPv4 des Webserver, der hat ene IPv4, zum Beispiel 84.34.21.76
Code: Alles auswählen
meinPC# ssh -p 2222 localhost
kex_exchange_identification: read: Connection reset by peer
Code: Alles auswählen
meinPC# ssh -v -p 2222 localhost
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 2222.
debug1: Connection established.
debug1: identity file /home/gerlach/.ssh/id_rsa type 0
debug1: identity file /home/gerlach/.ssh/id_rsa-cert type -1
debug1: identity file /home/gerlach/.ssh/id_dsa type 1
debug1: identity file /home/gerlach/.ssh/id_dsa-cert type -1
debug1: identity file /home/gerlach/.ssh/id_ecdsa type 2
debug1: identity file /home/gerlach/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/gerlach/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/gerlach/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/gerlach/.ssh/id_ed25519 type -1
debug1: identity file /home/gerlach/.ssh/id_ed25519-cert type -1
debug1: identity file /home/gerlach/.ssh/id_ed25519_sk type -1
debug1: identity file /home/gerlach/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/gerlach/.ssh/id_xmss type -1
debug1: identity file /home/gerlach/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
kex_exchange_identification: read: Connection reset by peer
Das meldet bei dem ssh -p 222 localhost meinWebsever.de im syslog:
Code: Alles auswählen
channel 3: open failed: connect failed: Connection refused
Ich vermute irgendwelche sshd-Einstellungen in sshd_config. Ein echo "1" > /proc/sys/net/ipv4/ip_forward bringt nichts.
Wer weiss weiter?
Danke schon mal
Eckard