I have my Linux workstation where I run a virtual machine with another Linux.
The point is that my friend would like to try make ssh
connect directly to my virtual machine, but we are not able to make it work.
ssh -R 2223:linda@virtualMachine:221 linda@workStation
This is how we tried it (we tried a lot of options, but this is basically the first idea). SSH on virtual machine listening on port 221, so that is why we use this port.
The problem is, that with this command, he connects to my workstation instead of virtualMachine
.
Why is that happening? Isn't this the way to forwarding SSH connections to the virtualMachine
address?