Discuss this help topic in SecureBlackbox Forum


TElSSHClass     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This property specifies whether SSH connection must be closed if the number of open tunnels goes to zero.


    bool CloseIfNoActiveTunnels;

    Property CloseIfNoActiveTunnels As Boolean

    property CloseIfNoActiveTunnels : boolean;

    bool get_CloseIfNoActiveTunnels();
    void set_CloseIfNoActiveTunnels(bool Value);

    bool get_CloseIfNoActiveTunnels()
    void set_CloseIfNoActiveTunnels(bool $Value)

    boolean getCloseIfNoActiveTunnels();
    void setCloseIfNoActiveTunnels(boolean Value);


    If this property is set to True, the SSH connection will be closed immediately after the last logical tunneled connection is closed. This may be reasonable if there are no more tunneled connections expected - for example, if only shell or command is tunneled.
    Set this property to False if you need to keep TElSSHServer or TElSSHClient alive after the last tunneled connection is closed.
    It's a good idea to set this property to False if local (or remote) port is forwarded, as there may be new connections accepted on this port, even if there are no active tunneled connections at the moment.
    It's recommended to set CloseIfNoActiveTunnels to True when TElShellSSHTunnel, TElCommandSSHTunnel, or TElSubsystemSSHTunnel is used. And to False when TElLocalPortForwardSSHTunnel, TElRemotePortForwardSSHTunnel, or TElX11ForwardSSHTunnel is used.

Discuss this help topic in SecureBlackbox Forum