Automatic Port Forwarding

fgltty now supports automatic port forwarding for SSH connections.

Fgltty is now able to detect a free port which can be used by the Port Forwarding mechanism.

Figure: Automatic port selected under Port forwarding mode


The figure shows panel four of the Genero Desktop Client shortcut wizard, with the Automatic port radio button selected.

With classic port forwarding, fgltty connects once, retrieves the port to use, returns it to GDC, and GDC restarts fgltty with the tunnel configuration. With automatic port forwarding, fgltty establishes the tunnel during the initial connection step, finding a free port automatically. A new default Terminal String has been added: <FGLAUTOPORT>=, which corresponds to the message which is automatically written by fgltty when selecting the auto port option.

Figure: FGLAUTOPORT example


The figure shows panel six of the Genero Desktop Client shortcut wizard, with FGLAUTOPORT set to retrieve the forwarding port.

Other mechanisms are still supported if you've implemented your own port assignment system.

Note:

Because there is only one connection - and therefore only one start of fgltty - remote command is not passed to fgltty (@tags would be wrong as GDC has no way to know the port fgltty will use before fgltty has been started). This is why using automatic port forwarding always starts a new shell (the option will be mandatory), which means you may have to check the execute the host command connection string to match your server.