I have an existing setup as follows,
workstation <-> Maas server <-> VM's.
The Maas server has two interfaces, eth0 has a static address of 192.168.x.x and the eth1 has 10.4.x.x. eth1 is also acting as DHCP manager for the VM's. My workstation's ip is 10.x.x.x and I can ssh the Maas server. The Maas server in turn is also ssh connect to the VM's. Because the workstation and VM's are on a different network I can't connect to the VM's directly.
I tried reverse SSH tunneling with,
ssh -R 6333:localhost:22 [email protected]
from one of the VM's to the Maas server. Afterwards I tried to connect from my workstation to the VM using,
ssh [email protected] -p 6333
But I repeatedly get this error, 'Permission denied (publickey).'
I have already copied my public key to in the VM's authorized key files, but I get same error. Is there maybe another method to connect from the workstation to the VM ! If so, please advise.