Mailinglist Archive: opensuse-de (1389 mails)

< Previous Next >
Re: ssh und Timeouts
  • From: David Haller <lists@xxxxxxxxxx>
  • Date: Wed, 25 Feb 2009 21:14:52 +0100
  • Message-id: <20090225201452.GA5388@xxxxxxxxxxxxxxxxxx>
Hallo,

Am Mit, 25 Feb 2009, Andre Tann schrieb:
===schnipp
The -f option backgrounds ssh and the remote command ``sleep
10'' is specified to allow an amount of time (10 seconds, in the
example) to start the service which is to be tunnelled. If no
connections are made within the time specified, ssh will exit.
===schnapp

Nun starte ich etwas wie

ssh -CNf -L port:host:remoteport ...

Welches "remote command"?

und stelle fest, daß ssh keineswegs nach 10 Sekunden stirbt, wenn
keine Daten über den Tunnel gehen. Warum ist das so?

ssh -f -L 1234:localhost:6667 server.example.com sleep 10
^^^^^^^^

ssh beendet sich, wenn das "remote command" fertig ist.

Wie könnte man es denn anstellen, daß sich so ein Tunnel nach einem
bestimmten timeout automatisch beendet?

Beendet oder in den Hintergrund geht? GUI- oder Terminalprogramm?

-dnh

--
20: Multimediaentwickler
Grafiker (Kristian Köhntopp)
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe@xxxxxxxxxxxx
Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken
Sie eine Mail an: opensuse-de+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References