![]() ![]() ![]() ![]() Step 1.Make sure that the linux host (starlord) has “GatewayPorts yes” in /etc/ssh/sshd_config. Lets do a proof of concept and make sure we can connect up like this, with some simple linux command. Proof of Concept & Prepare Linux hostīefore creating the scripts that kick-off the tunnel. Starlord is reachable SSH host, which can be reached by Ubuntu and other locations. The Ubuntu VM can be any server you are trying to reach that’s behind a NAT or firewall (that at least allows outbound connections). This article was written in mind for the topology & hostnames above, however it can be applied to any similar layout. Note, with the current default HyperV settings the Ubuntu VM is unreachable by anything in the network but it can reach anything (my Windows PC, the Switch, Starlord, and the internet). This by passes the tunnel and the need to create an external interface. Then I will be able to SSH into my Ubuntu VM thru starlord. Goal: Setup Reverse SSH tunnel from my Ubuntu VM to a Linux host in my network (or any network). I currently use HyperV KVM console to access the Ubuntu VM, which is very limiting as I have to use the UI, I can’t copy-paste between and its a small resolution. I have the option to create an external interface via HyperV to resolve that issue, however, it is having a hard time creating that interface. I cannot SSH into that Ubuntu VM because its using the default networking which creates a NAT. My Issue: I have a Ubuntu VM running on my Windows 11 via HyperV virtualization. ![]()
0 Comments
Leave a Reply. |