X Display and ssh tunnel
Supponiamo di trovarci di fronte a una situazione di questo tipo:
Ovvero, dal PC locale si desidera lanciare delle applicazioni tipo SoapUI TCPMon or located on the server 10.29.58.16.
There is a bastian host which protects the network.
Here's the logic to follow:
Case 1: the local PC and bastian host belong to the subnet setssa
A) I connect through ssh to bastian host: ssh-X $ USER_BAST@10.30.228.190
b) access to machine applications: ssh-X $ USER_TEST@10.29.58.16
Now has access to the machine application can launch the application without problems.
Case 2: the local PC and bastian host does not belong to the same subnet
wing logic to be followed in this case provides that the local PC must open a ssh tunnels that allows us to get to the machine 10.29.58.16 that contains the application to be launched
Assuming the username to access the bastian host "ilaria" we have:
A) create a local tunnel
ssh ssh-L-X 12345:10.29.58.16:22 - f-N ilaria@10.30.228.190
Where:
-12345 is the local port to use to reach the remote service, now accessible to localhost: 12345 -22
the service port is listening on the ssh server 10.29.58.16
-X using the "X" has the chance to export locally of any GUI launched from the remote machine
0 comments:
Post a Comment