0

I'm writing an application which will be doing something similar to SSH tunnelling (port forwarding and reverse port forwarding). However, SSH will not be involved at all, hence why I'm not using any existing libraries to do this.

What I'd like to know is how SSH currently achieves tunnelling. Are tunnels multiplexed over the initial SSH connection, or are multiple connections created for each tunnel?

0

OpenSSH can do multiplexing:

OpenSSH can re-use an existing TCP connection for multiple concurrent SSH sessions rather than creating a new one each time.

  • Does this mean that tunnels setup on an SSH session are multiplexed though, in the default configuration? I'm aware I can change the configuration to force multiplexing. – Chris Law Mar 22 '15 at 14:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.