I
I
Innokenty Ivanov2017-10-04 13:28:25
System administration
Innokenty Ivanov, 2017-10-04 13:28:25

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

3 answer(s)
F
Fixid, 2017-10-04
@Fixid

Forward or reverse ssh tunnel

C
cssman, 2017-10-04
@cssman

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.

A
Alexander Slyzhuk, 2017-10-05
@SLYzhuk

hostadmina.ru/blog/linux/ssh/probros-portov-cherez...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question