How to open a direct ssh between two machines that are connected through a (slow) VPN
I have two machines that are connected through the same software VPN. The VPN server is far away and slow.
I can open a (slow) ssh link between the machines through the VPN, but I would like to open a direct ssh link between the machines (not through the VPN).
Each machine is behind a NAT on a different public WiFi, so I don't have access to the routers.
Is there any way to use their secure VPN connection, in order to open a direct ssh?
EDIT: I have su permissions on both machines
linux ssh vpn tunnel
add a comment |
I have two machines that are connected through the same software VPN. The VPN server is far away and slow.
I can open a (slow) ssh link between the machines through the VPN, but I would like to open a direct ssh link between the machines (not through the VPN).
Each machine is behind a NAT on a different public WiFi, so I don't have access to the routers.
Is there any way to use their secure VPN connection, in order to open a direct ssh?
EDIT: I have su permissions on both machines
linux ssh vpn tunnel
To open a direct SSH between the two, outside the VPN, you'll need some control over the routers for such tasks as port forwarding. The VPN has already been configured with the necessary port forwarding as that, too, is a service that needs to be opened between sites/routers to allow the communication between the two VPN servers. You either need to configure the relevant port forwarding or continue using the existing VPN. It seems, with your inability to access the local or remote routers, that your options are limited.
– Kinnectus
Feb 12 at 10:55
How do you know that the VPN is slow, and not the connection between the two endpoints?
– Attie
Feb 12 at 13:14
@Attie, The VPN is on a different country.
– Yuval Atzmon
Feb 12 at 13:18
Possible duplicate of how to ssh two computers behind NAT and Firewall, without third computer
– harrymc
Feb 12 at 13:20
add a comment |
I have two machines that are connected through the same software VPN. The VPN server is far away and slow.
I can open a (slow) ssh link between the machines through the VPN, but I would like to open a direct ssh link between the machines (not through the VPN).
Each machine is behind a NAT on a different public WiFi, so I don't have access to the routers.
Is there any way to use their secure VPN connection, in order to open a direct ssh?
EDIT: I have su permissions on both machines
linux ssh vpn tunnel
I have two machines that are connected through the same software VPN. The VPN server is far away and slow.
I can open a (slow) ssh link between the machines through the VPN, but I would like to open a direct ssh link between the machines (not through the VPN).
Each machine is behind a NAT on a different public WiFi, so I don't have access to the routers.
Is there any way to use their secure VPN connection, in order to open a direct ssh?
EDIT: I have su permissions on both machines
linux ssh vpn tunnel
linux ssh vpn tunnel
edited Feb 12 at 13:12
Yuval Atzmon
asked Feb 12 at 10:42
Yuval AtzmonYuval Atzmon
174111
174111
To open a direct SSH between the two, outside the VPN, you'll need some control over the routers for such tasks as port forwarding. The VPN has already been configured with the necessary port forwarding as that, too, is a service that needs to be opened between sites/routers to allow the communication between the two VPN servers. You either need to configure the relevant port forwarding or continue using the existing VPN. It seems, with your inability to access the local or remote routers, that your options are limited.
– Kinnectus
Feb 12 at 10:55
How do you know that the VPN is slow, and not the connection between the two endpoints?
– Attie
Feb 12 at 13:14
@Attie, The VPN is on a different country.
– Yuval Atzmon
Feb 12 at 13:18
Possible duplicate of how to ssh two computers behind NAT and Firewall, without third computer
– harrymc
Feb 12 at 13:20
add a comment |
To open a direct SSH between the two, outside the VPN, you'll need some control over the routers for such tasks as port forwarding. The VPN has already been configured with the necessary port forwarding as that, too, is a service that needs to be opened between sites/routers to allow the communication between the two VPN servers. You either need to configure the relevant port forwarding or continue using the existing VPN. It seems, with your inability to access the local or remote routers, that your options are limited.
– Kinnectus
Feb 12 at 10:55
How do you know that the VPN is slow, and not the connection between the two endpoints?
– Attie
Feb 12 at 13:14
@Attie, The VPN is on a different country.
– Yuval Atzmon
Feb 12 at 13:18
Possible duplicate of how to ssh two computers behind NAT and Firewall, without third computer
– harrymc
Feb 12 at 13:20
To open a direct SSH between the two, outside the VPN, you'll need some control over the routers for such tasks as port forwarding. The VPN has already been configured with the necessary port forwarding as that, too, is a service that needs to be opened between sites/routers to allow the communication between the two VPN servers. You either need to configure the relevant port forwarding or continue using the existing VPN. It seems, with your inability to access the local or remote routers, that your options are limited.
– Kinnectus
Feb 12 at 10:55
To open a direct SSH between the two, outside the VPN, you'll need some control over the routers for such tasks as port forwarding. The VPN has already been configured with the necessary port forwarding as that, too, is a service that needs to be opened between sites/routers to allow the communication between the two VPN servers. You either need to configure the relevant port forwarding or continue using the existing VPN. It seems, with your inability to access the local or remote routers, that your options are limited.
– Kinnectus
Feb 12 at 10:55
How do you know that the VPN is slow, and not the connection between the two endpoints?
– Attie
Feb 12 at 13:14
How do you know that the VPN is slow, and not the connection between the two endpoints?
– Attie
Feb 12 at 13:14
@Attie, The VPN is on a different country.
– Yuval Atzmon
Feb 12 at 13:18
@Attie, The VPN is on a different country.
– Yuval Atzmon
Feb 12 at 13:18
Possible duplicate of how to ssh two computers behind NAT and Firewall, without third computer
– harrymc
Feb 12 at 13:20
Possible duplicate of how to ssh two computers behind NAT and Firewall, without third computer
– harrymc
Feb 12 at 13:20
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/3.0/"u003ecc by-sa 3.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%2fsuperuser.com%2fquestions%2f1404794%2fhow-to-open-a-direct-ssh-between-two-machines-that-are-connected-through-a-slow%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 Super User!
- 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%2fsuperuser.com%2fquestions%2f1404794%2fhow-to-open-a-direct-ssh-between-two-machines-that-are-connected-through-a-slow%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
To open a direct SSH between the two, outside the VPN, you'll need some control over the routers for such tasks as port forwarding. The VPN has already been configured with the necessary port forwarding as that, too, is a service that needs to be opened between sites/routers to allow the communication between the two VPN servers. You either need to configure the relevant port forwarding or continue using the existing VPN. It seems, with your inability to access the local or remote routers, that your options are limited.
– Kinnectus
Feb 12 at 10:55
How do you know that the VPN is slow, and not the connection between the two endpoints?
– Attie
Feb 12 at 13:14
@Attie, The VPN is on a different country.
– Yuval Atzmon
Feb 12 at 13:18
Possible duplicate of how to ssh two computers behind NAT and Firewall, without third computer
– harrymc
Feb 12 at 13:20