I have a situation where I have a Windows 10 virtual machine running under VirtualBox on my linux desktop. This virtual machine (and at the moment only this virtual machine) can establish a VPN tunnel to a remote office.
I currently have a small raspberry pi - which is currently sitting on my local network which I regularly ssh into from my linux desktop, and which I can also, once ssh'ed in can ssh from the pi back to my linux desktop to pull from a git repository. I can also ssh from my windows machine into the pi (using git bash).
What this implies is that both linux and pi run sshd, but windows doesn't
I am shortly going to move the pi to this remote office, and I would like to set up a situation where I can ssh to and from the pi in this location and my linux desktop.
So my thought was to set up a ssh tunnel using the windows client. So as an experiment still all in my local environment on the windows machine I did
ssh -L 9001:pi:22 pi@pi (for this example pi is also the local user on the pi). I assumed that this would forward traffic from port 9001 to the sshd server on the pi.
Then on my linux desktop I did
ssh -l pi -p 9001 win in the expectation that I would now ssh into the pi.
But it just hung.
What am I doing wrong?