omatickeron.blogg.se

Reverse ssh shell
Reverse ssh shell







reverse ssh shell

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.

reverse ssh shell reverse ssh shell

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.

reverse ssh shell

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.

  • Have the tunnel on a "timer" (say connects every day at 8 PM.Īn example of Number 2 would be to have the tunnel created whenever someone sticks a USB device into the machine.
  • Have some mechanism of triggering the creation of the tunnel.
  • Leave the tunnel up all the time (meaning have some sort of script that restarts it).
  • Yeah, it can get confusing the first 100 or so times you do it. Then you ssh/scp from your computer to the port that is established by the tunneling command. This is known as "reverse ssh tunneling", and basically what you do is on the museum computer you run a ssh -R command that causes a tunnel to get set up from inside their firewall to your computer. If I read the question, including the title properly, you are asking how connect from the museum computer to your computer so you can copy a video up.









    Reverse ssh shell