What do I need to create to an SSH tunnel to a local network service running on my remote host?Remote...
My second game: War Card game V.1
Applying UK Visit Visa Application from AU
Go (to / in) your own way
Does SQL Server's serializable isolation level lock entire table
What is /dev/null and why can't I use hx on it?
Can't change the screenshot directory because "com.apple.screencapture: command not found"
Can someone identify this old round connector?
Is having your hand in your pocket during a presentation bad?
How to catch creatures that can predict the next few minutes?
Why is the time of useful consciousness only seconds at high altitudes, when I can hold my breath much longer at ground level?
Is there a difference between historical fiction and creative non-fiction?
Injection from two strings to one string
How to realize Poles and zeros at infinity??especially through transfer function?
Why didn't Snape ask Dumbledore why he let "Moody" search his office?
"To Verb a Noun"
How do I know how many sub-shells deep I am?
AC/DC 100A clamp meter
How to prove (A v B), (A → C), (B → D) therefore (C v D)
Does the Flixbus N770 from Antwerp to Copenhagen go by ferry to Denmark
What is a practical use for this metric?
In what sense is SL(2,q) "very far from abelian"?
The locus of polynomials with specified root multiplicities
Is insurance company’s preferred auto shop biased?
Can something have more sugar per 100g than the percentage of sugar that's in it?
What do I need to create to an SSH tunnel to a local network service running on my remote host?
Remote support: routing RDP over ssh tunnel?Remote desktop over SSH reverse tunnel to replace TeamViewerRestarting network service for a local VM via SSHCan connecting to a SSH tunnel result in a vulnerability?How to use SSH tunnel to connect to remote MySQL server?Switch to local session from remote SSHHow to redirect website in restricted network through ssh tunnelHow to enable connection to SSH tunnel from network (Ubuntu 18.04 LTS)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
I would like to connect a virtualbox computer to a local service on a remote computer. I can connect to local services, but the remote one, I have a problem because on the destination, the service runs in a local LAN.
Here is a graphic of the 3 computer and two interfaces on the 3rd computer. I want to connect to 10.0.0.8:200 since the service I want to connect to only runs on that local network on the remote computer.
+--------------------+
| |
| VirtualBox |
| 192.168.11.11:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Local Computer |
| 192.168.11.41:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Remote Computer |
| 8.8.8.8 | <- I can connect here
| |
| 10.0.0.8:200 | <- how do I connect here?
| |
+--------------------+
I'm able to open a tunnel between Local Computer and Remote Computer, but that does not give me a way to connect to the service on local network 10.0.0.8.
What I have so far is the SSH tunnel between the Local Computer and the Remote Computer. I can otherwise connect between the VirtualBox and Local Computer (I have a bridged network setup with works as expected.)
ssh -L 200:8.8.8.8:200 example.com
So what I'm missing is a connection between 8.8.8.8 and 10.0.0.8. How do I create a tunnel/proxy between the two which makes service on 10.0.0.8:200 available to my Local Computer?
ssh virtualbox ssh-tunneling
|
show 2 more comments
I would like to connect a virtualbox computer to a local service on a remote computer. I can connect to local services, but the remote one, I have a problem because on the destination, the service runs in a local LAN.
Here is a graphic of the 3 computer and two interfaces on the 3rd computer. I want to connect to 10.0.0.8:200 since the service I want to connect to only runs on that local network on the remote computer.
+--------------------+
| |
| VirtualBox |
| 192.168.11.11:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Local Computer |
| 192.168.11.41:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Remote Computer |
| 8.8.8.8 | <- I can connect here
| |
| 10.0.0.8:200 | <- how do I connect here?
| |
+--------------------+
I'm able to open a tunnel between Local Computer and Remote Computer, but that does not give me a way to connect to the service on local network 10.0.0.8.
What I have so far is the SSH tunnel between the Local Computer and the Remote Computer. I can otherwise connect between the VirtualBox and Local Computer (I have a bridged network setup with works as expected.)
ssh -L 200:8.8.8.8:200 example.com
So what I'm missing is a connection between 8.8.8.8 and 10.0.0.8. How do I create a tunnel/proxy between the two which makes service on 10.0.0.8:200 available to my Local Computer?
ssh virtualbox ssh-tunneling
Have you tried runningssh -L 200:10.0.0.8:200 8.8.8.8on your local computer? That should create a tunnel from your local computer to the service via the remote computer. You should then be able to access that service from your VM via the host machine (local computer).
– igal
50 mins ago
Isn't 8.8.8.8 Google's DNS server?
– David Dai
31 mins ago
@DavidDai I did not want to disclose my IP. :-)
– Alexis Wilke
30 mins ago
Ok I'm assuming 8.8.8.8 is the same as example.com. Then what you need to do is simplyssh -L 200:10.0.0.8:200 example.com. That means connections to localhost:200 will be forwarded to10.0.0.8:200on the remote host, which is where your program listens for connection.
– David Dai
26 mins ago
1
Are you trying to connect tolocalhost:200oryour-local-ip:200? If the latter, you may want to tryssh -L 0.0.0.0:200:10.0.0.8:200 example.com.
– David Dai
15 mins ago
|
show 2 more comments
I would like to connect a virtualbox computer to a local service on a remote computer. I can connect to local services, but the remote one, I have a problem because on the destination, the service runs in a local LAN.
Here is a graphic of the 3 computer and two interfaces on the 3rd computer. I want to connect to 10.0.0.8:200 since the service I want to connect to only runs on that local network on the remote computer.
+--------------------+
| |
| VirtualBox |
| 192.168.11.11:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Local Computer |
| 192.168.11.41:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Remote Computer |
| 8.8.8.8 | <- I can connect here
| |
| 10.0.0.8:200 | <- how do I connect here?
| |
+--------------------+
I'm able to open a tunnel between Local Computer and Remote Computer, but that does not give me a way to connect to the service on local network 10.0.0.8.
What I have so far is the SSH tunnel between the Local Computer and the Remote Computer. I can otherwise connect between the VirtualBox and Local Computer (I have a bridged network setup with works as expected.)
ssh -L 200:8.8.8.8:200 example.com
So what I'm missing is a connection between 8.8.8.8 and 10.0.0.8. How do I create a tunnel/proxy between the two which makes service on 10.0.0.8:200 available to my Local Computer?
ssh virtualbox ssh-tunneling
I would like to connect a virtualbox computer to a local service on a remote computer. I can connect to local services, but the remote one, I have a problem because on the destination, the service runs in a local LAN.
Here is a graphic of the 3 computer and two interfaces on the 3rd computer. I want to connect to 10.0.0.8:200 since the service I want to connect to only runs on that local network on the remote computer.
+--------------------+
| |
| VirtualBox |
| 192.168.11.11:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Local Computer |
| 192.168.11.41:200 |
| |
+-----+--------------+
|
v
+--------------------+
| |
| Remote Computer |
| 8.8.8.8 | <- I can connect here
| |
| 10.0.0.8:200 | <- how do I connect here?
| |
+--------------------+
I'm able to open a tunnel between Local Computer and Remote Computer, but that does not give me a way to connect to the service on local network 10.0.0.8.
What I have so far is the SSH tunnel between the Local Computer and the Remote Computer. I can otherwise connect between the VirtualBox and Local Computer (I have a bridged network setup with works as expected.)
ssh -L 200:8.8.8.8:200 example.com
So what I'm missing is a connection between 8.8.8.8 and 10.0.0.8. How do I create a tunnel/proxy between the two which makes service on 10.0.0.8:200 available to my Local Computer?
ssh virtualbox ssh-tunneling
ssh virtualbox ssh-tunneling
asked 59 mins ago
Alexis WilkeAlexis Wilke
1,1427 silver badges18 bronze badges
1,1427 silver badges18 bronze badges
Have you tried runningssh -L 200:10.0.0.8:200 8.8.8.8on your local computer? That should create a tunnel from your local computer to the service via the remote computer. You should then be able to access that service from your VM via the host machine (local computer).
– igal
50 mins ago
Isn't 8.8.8.8 Google's DNS server?
– David Dai
31 mins ago
@DavidDai I did not want to disclose my IP. :-)
– Alexis Wilke
30 mins ago
Ok I'm assuming 8.8.8.8 is the same as example.com. Then what you need to do is simplyssh -L 200:10.0.0.8:200 example.com. That means connections to localhost:200 will be forwarded to10.0.0.8:200on the remote host, which is where your program listens for connection.
– David Dai
26 mins ago
1
Are you trying to connect tolocalhost:200oryour-local-ip:200? If the latter, you may want to tryssh -L 0.0.0.0:200:10.0.0.8:200 example.com.
– David Dai
15 mins ago
|
show 2 more comments
Have you tried runningssh -L 200:10.0.0.8:200 8.8.8.8on your local computer? That should create a tunnel from your local computer to the service via the remote computer. You should then be able to access that service from your VM via the host machine (local computer).
– igal
50 mins ago
Isn't 8.8.8.8 Google's DNS server?
– David Dai
31 mins ago
@DavidDai I did not want to disclose my IP. :-)
– Alexis Wilke
30 mins ago
Ok I'm assuming 8.8.8.8 is the same as example.com. Then what you need to do is simplyssh -L 200:10.0.0.8:200 example.com. That means connections to localhost:200 will be forwarded to10.0.0.8:200on the remote host, which is where your program listens for connection.
– David Dai
26 mins ago
1
Are you trying to connect tolocalhost:200oryour-local-ip:200? If the latter, you may want to tryssh -L 0.0.0.0:200:10.0.0.8:200 example.com.
– David Dai
15 mins ago
Have you tried running
ssh -L 200:10.0.0.8:200 8.8.8.8 on your local computer? That should create a tunnel from your local computer to the service via the remote computer. You should then be able to access that service from your VM via the host machine (local computer).– igal
50 mins ago
Have you tried running
ssh -L 200:10.0.0.8:200 8.8.8.8 on your local computer? That should create a tunnel from your local computer to the service via the remote computer. You should then be able to access that service from your VM via the host machine (local computer).– igal
50 mins ago
Isn't 8.8.8.8 Google's DNS server?
– David Dai
31 mins ago
Isn't 8.8.8.8 Google's DNS server?
– David Dai
31 mins ago
@DavidDai I did not want to disclose my IP. :-)
– Alexis Wilke
30 mins ago
@DavidDai I did not want to disclose my IP. :-)
– Alexis Wilke
30 mins ago
Ok I'm assuming 8.8.8.8 is the same as example.com. Then what you need to do is simply
ssh -L 200:10.0.0.8:200 example.com. That means connections to localhost:200 will be forwarded to 10.0.0.8:200 on the remote host, which is where your program listens for connection.– David Dai
26 mins ago
Ok I'm assuming 8.8.8.8 is the same as example.com. Then what you need to do is simply
ssh -L 200:10.0.0.8:200 example.com. That means connections to localhost:200 will be forwarded to 10.0.0.8:200 on the remote host, which is where your program listens for connection.– David Dai
26 mins ago
1
1
Are you trying to connect to
localhost:200 or your-local-ip:200? If the latter, you may want to try ssh -L 0.0.0.0:200:10.0.0.8:200 example.com.– David Dai
15 mins ago
Are you trying to connect to
localhost:200 or your-local-ip:200? If the latter, you may want to try ssh -L 0.0.0.0:200:10.0.0.8:200 example.com.– David Dai
15 mins ago
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f544378%2fwhat-do-i-need-to-create-to-an-ssh-tunnel-to-a-local-network-service-running-on%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f544378%2fwhat-do-i-need-to-create-to-an-ssh-tunnel-to-a-local-network-service-running-on%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have you tried running
ssh -L 200:10.0.0.8:200 8.8.8.8on your local computer? That should create a tunnel from your local computer to the service via the remote computer. You should then be able to access that service from your VM via the host machine (local computer).– igal
50 mins ago
Isn't 8.8.8.8 Google's DNS server?
– David Dai
31 mins ago
@DavidDai I did not want to disclose my IP. :-)
– Alexis Wilke
30 mins ago
Ok I'm assuming 8.8.8.8 is the same as example.com. Then what you need to do is simply
ssh -L 200:10.0.0.8:200 example.com. That means connections to localhost:200 will be forwarded to10.0.0.8:200on the remote host, which is where your program listens for connection.– David Dai
26 mins ago
1
Are you trying to connect to
localhost:200oryour-local-ip:200? If the latter, you may want to tryssh -L 0.0.0.0:200:10.0.0.8:200 example.com.– David Dai
15 mins ago