Getting SSH to exit when Forwardings fail

From: Mike Gibson (
Date: 01/22/04

  • Next message: Zill, Greg: "RE: Re: SSH / SSH-KEYGEN / PRNGD SEED"
    Date: Thu, 22 Jan 2004 08:02:22 -0700

    Is there any way to get the ssh client (I'm using OpenSSH_3.4p1) to exit (and
    give a failure code if possible) when a port forwarding fails? Wouldn't it
    make sense to do this if the -N option is specified? If the forwardings
    fail, then what is the point of the connection? I would like to do this in
    order to automate a set of port forwarding scripts. I need ssh to keep
    trying to create a forwarding until it is successful.

    Mike Gibson

  • Next message: Zill, Greg: "RE: Re: SSH / SSH-KEYGEN / PRNGD SEED"

    Relevant Pages

    • Re: Bypassing the ISP when they block SMTP protocol?
      ... Grand Poohbah wrote: ... > You just need an ssh client that is capable of port forwarding to connect to ... > your remote BSD machine as described. ...
    • Re: [opensuse] Re: OpenSUSE PuTTY ?
      ... remembers connection info, does port forwarding, allows terminal ... Why would Putty have port forwarding if it was not already supported ... by every ssh client and server in the world? ... Putty is a miserable attempt to replicate in windows what is already available ...
    • Re: X equivalent of GNU screen
      ... VNC isn't really what I want because it handles ... Would using ssh with X11 port forwarding do what you want? ... need to do is to allow port forwarding on the ssh client, ... martin@ | Martin Gregorie ...