Hallo, wie kann ich einen ssh-tunnel über einen vorhandenen ssh-revers-Tunnel machen? Es "dockt" nicht an:
meinPC# ssh -p 2222 localhost kex_exchange_identification: read: Connection reset by peer
Es liegt ein ssh-remote-Tunnel vom remotePC auf einen Debian-Server im web vor. Der funktioniert, vom Debian-Server aus komme ich per ssh -p 2099 localhost auch auf den remotePC. Nun "dockt" ein
meinPC# ssh -L 2222:localhost:2099 root@meinWebserver.de
aber nicht auf port 2099 an! Warum? - Ein ssh -p 2222 localhost funktioniert nicht, siehe oben.
Genauer:
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
Danke schon mal Eckard