

This is a normal tunnel.Ī reverse tunnel is when port A sets everything up but their ferry is only taking people from B->A. They buy a ferry, do all the bureaucracy and cars are now flowing from A->B. Say port A wants to have a ferry line with port B. To follow up with the ferry analogy, a “direction of a tunnel” is defined by the direction of the ferry in relation to the dock which created the naval route. We have to first define what the direction of a tunnel means. So a connection (road for cars) is being tunneled through another connection (naval route of the ferry).Īn SSH tunnel is an SSH connection that serves as a ferry for other SSH connections allowing them to reach places they normally couldn’t. The ferry is also running on its own naval route ( connection) between two ports. It has a source port and a destination one. It’s allowing the road to pass over an obstacle. Let’s try to broaden that concept and say that a ferry transporting cars across some body of water is in a sense also acting as a tunnel. It’s something you dig out to allow the road to continue through an obstacle. Let’s zoom out for a second and ask what a tunnel is in a general sense. What’s an SSH tunnel and how does it differ from a connection? By this act you form an SSH connection between the two.


In the most basic form, you use the SSH client on your workstation to connect to the SSH server on the remote side. If you’re reading this you’ve probably heard of SSH, the cryptographic network protocol usually running on port 22 which allows you access to the shell of a remote machine.

Send email to have the museum staff verify that a "good" video is playing.Want an easy way to SSH to a device behind a firewall but don’t want to set up a VPN? Welcome to the pragmatic person’s approach - Reverse SSH tunneling. Move the previous video to a backup file. Have the museum staff send the email to a script strip off the video from the email and de-encode it back to it's original format. Set up an incoming mail server on the video machine. You would then have some way of triggering a script that would create the tunnel (bonus points for random ports on the tunnel, communicated to you by the video machine sending an email (more bonus points for encrypting that email) to you that it's ready).Īnother solution, channeling the ghost of Reuben Garrett Lucius Goldberg. Then instead of emailing you the video, the museum staff would simply stick it on a USB drive themselves and insert the drive in the computer.
