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;








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: terminal screenshot



I'm using Linux mint 19.01

Droplet is Ubuntu 18.04










share|improve this question









New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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

















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: terminal screenshot



I'm using Linux mint 19.01

Droplet is Ubuntu 18.04










share|improve this question









New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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













0












0








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: terminal screenshot



I'm using Linux mint 19.01

Droplet is Ubuntu 18.04










share|improve this question









New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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: terminal screenshot



I'm using Linux mint 19.01

Droplet is Ubuntu 18.04







ssh linux-mint ssh-tunneling vnc






share|improve this question









New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Apr 7 at 14:50









Prabhjot Singh

107213




107213






New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 7 at 14:35









YapartaseYapartase

1




1




New contributor




Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 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











  • @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










3 Answers
3






active

oldest

votes


















2














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)






share|improve this answer






























    0














    worked after installing vncviewer and running vncviewer localhost:5901






    share|improve this answer








    New contributor




    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



























      0














      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.







      share|improve this answer























        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.









        draft saved

        draft discarded


















        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









        2














        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)






        share|improve this answer



























          2














          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)






          share|improve this answer

























            2












            2








            2







            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)






            share|improve this answer













            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)







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 7 at 15:37









            Ljm DullaartLjm Dullaart

            769312




            769312























                0














                worked after installing vncviewer and running vncviewer localhost:5901






                share|improve this answer








                New contributor




                Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.
























                  0














                  worked after installing vncviewer and running vncviewer localhost:5901






                  share|improve this answer








                  New contributor




                  Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






















                    0












                    0








                    0







                    worked after installing vncviewer and running vncviewer localhost:5901






                    share|improve this answer








                    New contributor




                    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.










                    worked after installing vncviewer and running vncviewer localhost:5901







                    share|improve this answer








                    New contributor




                    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer






                    New contributor




                    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered Apr 7 at 15:35









                    YapartaseYapartase

                    1




                    1




                    New contributor




                    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    Yapartase is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





















                        0














                        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.







                        share|improve this answer



























                          0














                          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.







                          share|improve this answer

























                            0












                            0








                            0







                            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.







                            share|improve this answer













                            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.








                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 7 at 17:00









                            GAD3RGAD3R

                            28.1k1958114




                            28.1k1958114




















                                Yapartase is a new contributor. Be nice, and check out our Code of Conduct.









                                draft saved

                                draft discarded


















                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                                Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                                Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.