I have installed Visual C++ 2015 for Linux. What this does is, it takes a server name, a port number, a username, and a password, then connects to the remote machine, compiles a C++ program inside that machine, and then returns the result to my local PC.
Now, the problem I am facing is, I have to connect to the remote PC through a bastion-host machine.
Suppose, the IP address and port number of the bastion server are yyy.yy.y.20
and 8081
respectively; the IP address of the remote machine is xxx.xxx.x.180
but I don't know the port number.
What should be the command to create a tunnel from my local Windows 10 to the remote Linux machine?
ssh -L 22:xxx.xxx.x.180:22 yyy.yy.y.20:8081
The above command is giving me an error message:
Microsoft Windows [Version 10.0.19045.2846]
(c) Microsoft Corporation. All rights reserved.
C:\Users\pc>ssh -L 22:xxx.xxx.x.180:22 yyy.yy.y.20
C:\Users\pc>ssh -L 22:xxx.xxx.x.180:22 yyy.yy.y.20:8081
ssh: Could not resolve hostname yyy.yy.y.20:8081: No such host is known.
C:\Users\pc>
How can I setup an SSH tunnel from local Windows 10 to remote Ubuntu?