Problem creating SSH tunnel on linux The 2019 Stack Overflow Developer Survey Results Are InSSH tunnel hangingRemote support: routing RDP over ssh tunnel?user@localhost password not accepted when ssh-ing through a tunnelProblem accessing server with VNCforward all mysql traffic to a ssh tunnel“channel 3: open failed: administratively prohibited: open failed” when creating a VNC session on a SSH tunnelSSH Tunneling to VNCServerssh tunnel does not workUnable to Connect to VNC Server Using SSH TunnelTightvnc server
Why isn't airport relocation done gradually?
How are circuits which use complex ICs normally simulated?
Did Section 31 appear in Star Trek: The Next Generation?
During Temple times, who can butcher a kosher animal?
Deal with toxic manager when you can't quit
Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?
Why did Acorn's A3000 have red function keys?
Output the Arecibo Message
Worn-tile Scrabble
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Geography at the pixel level
How technical should a Scrum Master be to effectively remove impediments?
Did 3000BC Egyptians use meteoric iron weapons?
When should I buy a clipper card after flying to OAK?
What do the Banks children have against barley water?
How to notate time signature switching consistently every measure
Shouldn't "much" here be used instead of "more"?
"as much details as you can remember"
What is the motivation for a law requiring 2 parties to consent for recording a conversation
What is the meaning of Triage in Cybersec world?
Why do we hear so much about the Trump administration deciding to impose and then remove tariffs?
How to manage monthly salary
What is the accessibility of a package's `Private` context variables?
Does a dangling wire really electrocute me if I'm standing in water?
Problem creating SSH tunnel on linux
The 2019 Stack Overflow Developer Survey Results Are InSSH tunnel hangingRemote support: routing RDP over ssh tunnel?user@localhost password not accepted when ssh-ing through a tunnelProblem accessing server with VNCforward all mysql traffic to a ssh tunnel“channel 3: open failed: administratively prohibited: open failed” when creating a VNC session on a SSH tunnelSSH Tunneling to VNCServerssh tunnel does not workUnable to Connect to VNC Server Using SSH TunnelTightvnc server
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm following this guide to setup VNC on my DigitalOcean droplet.
Everything works fine up to step 3. When I try to create an SSH connection on my local computer using ssh -L 5901:127.0.0.1:5901 -C -N -l sammy your_server_ip
in my terminal, nothing happens:
I'm using Linux mint 19.01
Droplet is Ubuntu 18.04
ssh linux-mint ssh-tunneling vnc
New contributor
add a comment |
I'm following this guide to setup VNC on my DigitalOcean droplet.
Everything works fine up to step 3. When I try to create an SSH connection on my local computer using ssh -L 5901:127.0.0.1:5901 -C -N -l sammy your_server_ip
in my terminal, nothing happens:
I'm using Linux mint 19.01
Droplet is Ubuntu 18.04
ssh linux-mint ssh-tunneling vnc
New contributor
ehm... You now have the tunnel running. The guide says "Once the tunnel is running, use a VNC client to connect to localhost:5901. " So, what happens if you start (for example in a second terminal)vncviewer 127.0.0.1::5901
?
– Ljm Dullaart
Apr 7 at 15:01
@LjmDullaart link
– Yapartase
Apr 7 at 15:17
Please answer questions in comments by improving you initial post...
– xenoid
Apr 7 at 15:19
@LjmDullaart I got it to work by installing and using vncviewer instead of gvncviewer. thanks!
– Yapartase
Apr 7 at 15:22
add a comment |
I'm following this guide to setup VNC on my DigitalOcean droplet.
Everything works fine up to step 3. When I try to create an SSH connection on my local computer using ssh -L 5901:127.0.0.1:5901 -C -N -l sammy your_server_ip
in my terminal, nothing happens:
I'm using Linux mint 19.01
Droplet is Ubuntu 18.04
ssh linux-mint ssh-tunneling vnc
New contributor
I'm following this guide to setup VNC on my DigitalOcean droplet.
Everything works fine up to step 3. When I try to create an SSH connection on my local computer using ssh -L 5901:127.0.0.1:5901 -C -N -l sammy your_server_ip
in my terminal, nothing happens:
I'm using Linux mint 19.01
Droplet is Ubuntu 18.04
ssh linux-mint ssh-tunneling vnc
ssh linux-mint ssh-tunneling vnc
New contributor
New contributor
edited Apr 7 at 14:50
Prabhjot Singh
107213
107213
New contributor
asked Apr 7 at 14:35
YapartaseYapartase
1
1
New contributor
New contributor
ehm... You now have the tunnel running. The guide says "Once the tunnel is running, use a VNC client to connect to localhost:5901. " So, what happens if you start (for example in a second terminal)vncviewer 127.0.0.1::5901
?
– Ljm Dullaart
Apr 7 at 15:01
@LjmDullaart link
– Yapartase
Apr 7 at 15:17
Please answer questions in comments by improving you initial post...
– xenoid
Apr 7 at 15:19
@LjmDullaart I got it to work by installing and using vncviewer instead of gvncviewer. thanks!
– Yapartase
Apr 7 at 15:22
add a comment |
ehm... You now have the tunnel running. The guide says "Once the tunnel is running, use a VNC client to connect to localhost:5901. " So, what happens if you start (for example in a second terminal)vncviewer 127.0.0.1::5901
?
– Ljm Dullaart
Apr 7 at 15:01
@LjmDullaart link
– Yapartase
Apr 7 at 15:17
Please answer questions in comments by improving you initial post...
– xenoid
Apr 7 at 15:19
@LjmDullaart I got it to work by installing and using vncviewer instead of gvncviewer. thanks!
– Yapartase
Apr 7 at 15:22
ehm... You now have the tunnel running. The guide says "Once the tunnel is running, use a VNC client to connect to localhost:5901. " So, what happens if you start (for example in a second terminal)
vncviewer 127.0.0.1::5901
?– Ljm Dullaart
Apr 7 at 15:01
ehm... You now have the tunnel running. The guide says "Once the tunnel is running, use a VNC client to connect to localhost:5901. " So, what happens if you start (for example in a second terminal)
vncviewer 127.0.0.1::5901
?– Ljm Dullaart
Apr 7 at 15:01
@LjmDullaart link
– Yapartase
Apr 7 at 15:17
@LjmDullaart link
– Yapartase
Apr 7 at 15:17
Please answer questions in comments by improving you initial post...
– xenoid
Apr 7 at 15:19
Please answer questions in comments by improving you initial post...
– xenoid
Apr 7 at 15:19
@LjmDullaart I got it to work by installing and using vncviewer instead of gvncviewer. thanks!
– Yapartase
Apr 7 at 15:22
@LjmDullaart I got it to work by installing and using vncviewer instead of gvncviewer. thanks!
– Yapartase
Apr 7 at 15:22
add a comment |
3 Answers
3
active
oldest
votes
In this step, you set-up a tunnel. When you start-up ssh in tunnel-mode, it will just run in tunnel-mode, providing no additional output.
After this step, you can start:
vncviewer 127.0.0.1::5901
to get a connection.
Note that the 5901
is the port number that you used to set-up your tunnel. The syntax for gvncviewer
is different; the part in the command-line after the :
there is used to specify the display, not the port number as far as I can tell (I don't use gvncviewer
)
add a comment |
worked after installing vncviewer and running vncviewer localhost:5901
New contributor
add a comment |
The -N
option will disable the shell. man ssh
:
-N Do not execute a remote command. This is useful for just forwarding ports.
The digitalocean guide:
while the
-N
switch tells ssh that we don't want to execute a remote command.
add a comment |
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/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
);
);
Yapartase is a new contributor. Be nice, and check out our Code of Conduct.
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%2f511055%2fproblem-creating-ssh-tunnel-on-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
In this step, you set-up a tunnel. When you start-up ssh in tunnel-mode, it will just run in tunnel-mode, providing no additional output.
After this step, you can start:
vncviewer 127.0.0.1::5901
to get a connection.
Note that the 5901
is the port number that you used to set-up your tunnel. The syntax for gvncviewer
is different; the part in the command-line after the :
there is used to specify the display, not the port number as far as I can tell (I don't use gvncviewer
)
add a comment |
In this step, you set-up a tunnel. When you start-up ssh in tunnel-mode, it will just run in tunnel-mode, providing no additional output.
After this step, you can start:
vncviewer 127.0.0.1::5901
to get a connection.
Note that the 5901
is the port number that you used to set-up your tunnel. The syntax for gvncviewer
is different; the part in the command-line after the :
there is used to specify the display, not the port number as far as I can tell (I don't use gvncviewer
)
add a comment |
In this step, you set-up a tunnel. When you start-up ssh in tunnel-mode, it will just run in tunnel-mode, providing no additional output.
After this step, you can start:
vncviewer 127.0.0.1::5901
to get a connection.
Note that the 5901
is the port number that you used to set-up your tunnel. The syntax for gvncviewer
is different; the part in the command-line after the :
there is used to specify the display, not the port number as far as I can tell (I don't use gvncviewer
)
In this step, you set-up a tunnel. When you start-up ssh in tunnel-mode, it will just run in tunnel-mode, providing no additional output.
After this step, you can start:
vncviewer 127.0.0.1::5901
to get a connection.
Note that the 5901
is the port number that you used to set-up your tunnel. The syntax for gvncviewer
is different; the part in the command-line after the :
there is used to specify the display, not the port number as far as I can tell (I don't use gvncviewer
)
answered Apr 7 at 15:37
Ljm DullaartLjm Dullaart
769312
769312
add a comment |
add a comment |
worked after installing vncviewer and running vncviewer localhost:5901
New contributor
add a comment |
worked after installing vncviewer and running vncviewer localhost:5901
New contributor
add a comment |
worked after installing vncviewer and running vncviewer localhost:5901
New contributor
worked after installing vncviewer and running vncviewer localhost:5901
New contributor
New contributor
answered Apr 7 at 15:35
YapartaseYapartase
1
1
New contributor
New contributor
add a comment |
add a comment |
The -N
option will disable the shell. man ssh
:
-N Do not execute a remote command. This is useful for just forwarding ports.
The digitalocean guide:
while the
-N
switch tells ssh that we don't want to execute a remote command.
add a comment |
The -N
option will disable the shell. man ssh
:
-N Do not execute a remote command. This is useful for just forwarding ports.
The digitalocean guide:
while the
-N
switch tells ssh that we don't want to execute a remote command.
add a comment |
The -N
option will disable the shell. man ssh
:
-N Do not execute a remote command. This is useful for just forwarding ports.
The digitalocean guide:
while the
-N
switch tells ssh that we don't want to execute a remote command.
The -N
option will disable the shell. man ssh
:
-N Do not execute a remote command. This is useful for just forwarding ports.
The digitalocean guide:
while the
-N
switch tells ssh that we don't want to execute a remote command.
answered Apr 7 at 17:00
GAD3RGAD3R
28.1k1958114
28.1k1958114
add a comment |
add a comment |
Yapartase is a new contributor. Be nice, and check out our Code of Conduct.
Yapartase is a new contributor. Be nice, and check out our Code of Conduct.
Yapartase is a new contributor. Be nice, and check out our Code of Conduct.
Yapartase is a new contributor. Be nice, and check out our Code of Conduct.
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%2f511055%2fproblem-creating-ssh-tunnel-on-linux%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
ehm... You now have the tunnel running. The guide says "Once the tunnel is running, use a VNC client to connect to localhost:5901. " So, what happens if you start (for example in a second terminal)
vncviewer 127.0.0.1::5901
?– Ljm Dullaart
Apr 7 at 15:01
@LjmDullaart link
– Yapartase
Apr 7 at 15:17
Please answer questions in comments by improving you initial post...
– xenoid
Apr 7 at 15:19
@LjmDullaart I got it to work by installing and using vncviewer instead of gvncviewer. thanks!
– Yapartase
Apr 7 at 15:22