TigerVNC / tigervnc

High performance, multi-platform VNC client and server
https://tigervnc.org
GNU General Public License v2.0
5.19k stars 947 forks source link

-via does not allow to specify a port #347

Open ydirson opened 8 years ago

ydirson commented 8 years ago

xvnc4viewer has support for "-via gateway:port" and $P in VNC_VIA_CMD. Lack of this functionnality is worked around by using VNC_VIA_CMD, but is a bit awkward to use :)

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/37548391-via-does-not-allow-to-specify-a-port?utm_campaign=plugin&utm_content=tracker%2F3557444&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F3557444&utm_medium=issues&utm_source=github).
bphinz commented 7 years ago

In case it helps, the TigerVNC Java viewer supports specifying both the SSH port and SSH username of the gateway host from both the command line ("-via user@host:port") and also from the GUI.

SuperShinyEyes commented 7 years ago

@bphinz What kind of command do you give on GUI?

In Linux server I start a session as:

# start a server at port 5901
vncserver -SecurityTypes=TLSPlain -PlainUsers=$USER -pam_service login -desktop $HOSTNAME

then on an Ubuntu client I use:

./vncviewer localhost:1 -via username@address

I tried but failed:

screen shot 2017-10-24 at 21 52 42

screen shot 2017-10-24 at 21 52 47