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:
我正在使用Linux Mint 19.01 Droplet是Ubuntu 18.04
worked after installing vncviewer and running
vncviewer localhost:5901
在此步骤中,您将建立一个隧道。当您以隧道模式启动ssh时,它将仅以隧道模式运行,不提供任何其他输出。
完成此步骤后,您可以开始:
建立联系。
Note that the
5901
is the port number that you used to set-up your tunnel. The syntax forgvncviewer
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 usegvncviewer
)The
-N
option will disable the shell.man ssh
:The digitalocean guide: