OpenSSH can forward TCP connections over a Secure Shell (SSH) connection. Read on for example uses.
SubEthaEdit allows collaborative real-time editing of documents. If run on a laptop, editing over the Internet may not be possible, due to firewalls. However, with a static server available to connect to, a SSH connection can be used to create a tunnel to SubEthaEdit. Downsides of this approach: the server must open up a port for remote access, and either forward the port to 127.0.0.1:6942, or enable GatewayPorts in the server’s sshd_config file.
Once the server allows 6942 in, on the laptop, a ~/.ssh/config entry should be used to create this forward automatically:
Host server.example.org
RemoteForward 6942 127.0.0.1:6942
Connect from the laptop to the server:
$ ssh server.example.org
Then, have other systems connect to see://server.example.org using SubEthaEdit.

Firewalls may deny incoming SSH connections, but allow outgoing SSH. Using forwarding, an incoming path may be setup by tunneling access to the internal sshd server over a persistant outbound connection. Warning! This use of SSH may impose a security risk to the site in question, or be a security policy violation!
internal$ ssh -R 2222:127.0.0.1:22 external.example.org
external$ ssh -p 2222 127.0.0.1
Setting the NoHostAuthenticationForLocalhost yes option might be required to avoid key conflicts, if multiple connections are done using the localhost address. For more information, see ssh_config(5).