uhuC
Transparenter SSH Proxy - Druckversion

+- uhuC (https://uhuc.de)
+-- Forum: uhuc Classic (https://uhuc.de/forum-43.html)
+--- Forum: Hilfeforum (https://uhuc.de/forum-5.html)
+--- Thema: Transparenter SSH Proxy (/thread-528.html)



Transparenter SSH Proxy - kromonos - 02.11.2014

Ich bräuchte einen transparenten SSH Proxy.
Also. Bei der Verbindung mit einer fixen IP, z.B. ssh foo[at]123.123.123.123, soll die SSH Verbindung zu einer Dynamischen IP Adresse via dyndns eintrag transparent umgeleitet werden, z.B. foo.dyndns.org.

Ich hab so einiges gegoogelt, aber gefunden hab ich leider nichts :-\

Edit: Gefunden.
Stichwort: Reverse SSH Tunnel: ssh -fN -R 7000:localhost:22 username@yourMachine-ipaddress

Edit2: Sehr praktisches Script dafür:
Code:
#!/bin/bash
set +e
SSH_OPTIONS=" -i /etc/tunnel/id_dsa"
# Always assume initial connection will be successful
export AUTOSSH_GATETIME=0
# Disable echo service, relying on SSH exiting itself
export AUTOSSH_PORT=0
autossh -f -- $SSH_OPTIONS -o 'ControlPath none' -R 1024:foo.bar:22 user@localeIP -N 2> /var/log/autossh_error.out