Mount remote drive by port forwarding

I have a windows 7 computer at home and a remote windows XP machine with an external USB drive attached to it. I would like to be able to copy files to and from home/the remote USB drive. The problem is that the only way of contacting the work computer is by first sshing into a different remote linux machine as there is a firewall that prevents direct internet connection.

I can see two possible solutions but I don’t know how to do them.

  • Set up winscp using ssh port forwarding via the linux box so that I can copy to and from the two windows machines. I assume that I would need to run an ssh server on the XP machine as well to do this?
  • Mounting the remote USB drive on the remote windows machine from the home XP machine via ssh port forwarding again via the linux box.

Does anyone know how to do either solution?

Answer

You can setup reverse ssh between windows machines for direct connection. Cygwin is one option.

http://brendonrobinson.wordpress.com/2011/09/11/ssh-through-firewalls-using-a-reverse-ssh-tunnel/

If remote machine is at your work please keep in mind that your employer (IT guy) will be able to see a persistent ssh connection and usually it’s not something that a company’s IT would appreciate since you’re esentially punching trough their security.

Attribution
Source : Link , Question Author : Anushka , Answer Author : Damir

Leave a Comment