Skip to main content
Markup and minor grammar. Title.
Source Link
Kusalananda
  • 355.8k
  • 42
  • 735
  • 1.1k

Access VM with SSH through VM host

iI have my linux work stationLinux workstation where iI run Virtual Machinea virtual machine with another linuxLinux.

The point is, that my friend would like to try make sshssh connect directly to my virtual machine, but we are not able to make it work.

ssh -R 2223:linda@virtualMachine:221 linda@workStation

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 connectconnects to my workstation instead of virtualMachine.virtualMachine.

Why is that happenedhappening? Isn't this the way to forwarding ssh connectSSH connections to virtualMachinethe virtualMachine address?

Access VM with SSH

i have my linux work station where i run 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.

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 connect to my workstation instead of virtualMachine..

Why is that happened? Isn't this the way to forwarding ssh connect to virtualMachine address?

Access VM with SSH through VM host

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?

Source Link
dvory59
  • 75
  • 1
  • 1
  • 7

Access VM with SSH

i have my linux work station where i run 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.

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 connect to my workstation instead of virtualMachine..

Why is that happened? Isn't this the way to forwarding ssh connect to virtualMachine address?