Connection Reuse in Secure Shell Sessions
Connection reuse enables additional Secure Shell sessions to be added to an already established Secure Shell connection. A simple analogy for this is a fiber optic cable, in which the outside pipe represents the connection, through which the various fiber-optic strands (the sessions and tunnels) are routed. The additional sessions can be new Reflection Secure Shell terminal sessions, new Reflection SFTP file transfer sessions, forwarded X11connections, any communications configured for port forwarding through the SSH tunnel, or any connection established using one of the Reflection Secure Shell command line utilities.
When you reuse an established Secure Shell connection, you don't need to repeat the authentication process. The new session always uses all the Secure Shell settings configured for the initial connection. Any differences in authentication methods, cipher or MAC settings, or port forward definitions are ignored.
Connection reuse is enabled by default for all Secure Shell connections made using the Reflection user interface. You can disable this feature by clearing the Reuse existing connection if available check box on the General tab of the Secure Shell Settings dialog box.
After you have established a connection in which Reuse existing connection if available is enabled, subsequent Secure Shell sessions reuse the established connection if all of the following conditions are true:
Connection Reuse in Reflection Command Line Sessions
Connection reuse is useful for command line operations in which Secure Shell connections are required, numerous small operations are needed between a client and a single server, and the authentication and key exchange time interval is a significant part of the total connection time. This would be the case if you need to transfer multiple small files, or execute simple operating system commands that do not result in large quantities of returned output. In these cases it might be advantageous to create the original SSH connection using the ssh (or ssh2) command line utility, and then reuse the connection with subsequent command line utility operations.
By default, connection reuse is disabled for the Reflection Secure Shell client command line utilities (ssh, scp, sftp, ssh2, scp2, and sftp2).To enable connection reuse with any of these command line utilities, you must use one of the following techniques.
If conflicting settings are present, the -o switch takes precedence.