Answer the question
In order to leave comments, you need to log in
How to connect via SSH to a server on another network through an intermediary computer?
There is a server , it has a local IP'shnik. It is on a local network that is not accessible to my machine. There is another machine that is on the same network as the server . How can I connect from my machine to another machine via the console (cmd, powershell, bash - it doesn't matter), and from that machine to the server ?
Like I write ssh 10.0.1.101 and it broadcasts this command through another computer to the server?
My machine: Windows 10, Linux subsystem enabled;
Machine on network with server: Windows 10, Linux subsystem enabled;
Server: HZ, Ubuntu, probably. Known only IP'shnik.
How to organize this? For example, on a machine that is on the same network as the server, would it have a VPN? Telnet?
Answer the question
In order to leave comments, you need to log in
There are many ways:
rdp to a wheelbarrow, from it ssh
vpn to a wheelbarrow, from it ssh
any rd (teamviewer, etc) to a wheelbarrow, from it ssh
The simplest is a NAT rule to a wheelbarrow that acts as a gateway. NAT will forward ssh to the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question