ssh + proxy

Von: , Frage gestellt am Sa, 24. Feb 2007

Hallo,
wie kommt man unter Linux eigentlich per ssh "raus", wenn man über einen Proxy verbunden ist?
Als Proxy läuft squid, und der Port ist auch schon freigegeben und unter Windows funktioniert es auch wunderbar mit Putty.
Da kann man einfach den Proxy eintragen.

Wie aber übergibt man den Proxy-Parameter unter Linux?

Gruß
K

3 Antworten zu dieser Frage

  1. Antwort von nach 4 Stunden 0 hilfreich
    Re: ssh + proxy

    Hallo, wie kommt man unter Linux eigentlich per ssh "raus", wenn man
    über einen Proxy verbunden ist?
    Als Proxy läuft squid, und der Port ist auch schon freigegeben
    und unter Windows funktioniert es auch wunderbar mit Putty.
    Da kann man einfach den Proxy eintragen.

    Wie aber übergibt man den Proxy-Parameter unter Linux?
    aus man ssh_config:

    
    ProxyCommand
    Specifies the command to use to connect to the server.  The com-
    mand string extends to the end of the line, and is executed with
    /bin/sh.  In the command string, `%h' will be substituted by the
    host name to connect and `%p' by the port.  The command can be
    basically anything, and should read from its standard input and
    write to its standard output.  It should eventually connect an
    sshd(8) server running on some machine, or execute sshd -i some-
    where.  Host key management will be done using the HostName of
    the host being connected (defaulting to the name typed by the
    user).  Setting the command to ``none'' disables this option
    entirely.  Note that CheckHostIP is not available for connects
    with a proxy command.
    This directive is useful in conjunction with nc(1) and its proxy
    support.  For example, the following directive would connect via
    an HTTP proxy at 192.0.2.0:
    ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
    

    Gruß,

    Malte

  2. Antwort von nach 4 Stunden 0 hilfreich
    Re: ssh + proxy

    Hallo, und unter Windows funktioniert es auch wunderbar mit Putty.
    Da kann man einfach den Proxy eintragen.
    nochmal als Nachtrag: putty gibt's natürlich auch für Linux. Wenn Du das also nur gelegentlich brauchst, könnte das die Methode Deiner Wahl sein.

    Gruß,

    Malte

    • Antwort von nach 14 Stunden 0 hilfreich
      Re^2: ssh + proxy

      Hallo,
      und danke. Habe garnicht daran gedacht, dass es Putty für Linux geben könnte.
      Gruß
      K [Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]

Keine passende Antwort gefunden? Jetzt eigene Frage stellen!