-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying the port for ssh gateway seperately #440
Comments
The logs do in fact tell you the SSH port and username for all SSH hops, regardless of the logging level. You should see something like:
Regarding the behavior of Option 1:
Option 2:
UltraVNC Repeater gateways are essentially a deprecated feature that may be removed or hidden behind another system property in the future, which would open up the possibility of specifying a gateway SSH port in the Possible stopgap solutions:
I prefer (1). |
@gdevenyi I am willing to introduce a workaround for you, but TurboVNC 3.2 beta is imminent, so I need timely feedback on this and the other issues you filed. Otherwise any additional changes will have to wait until a future release. |
This works for my personal use case, but I'd like to use TurboVNC for a more general set of remote access from OSX/Windows where setting up SSH config will not be straightforward. I prefer (2), assuming that a GUI field can be exposed for this at the same time. |
Upon further consideration, two system properties and a parameter is more complex than two parameters, so that would undercut my justification for choosing Option 1. I am going to go ahead and change the |
The jump host feature is an improvement upon the traditional Via feature, since it eliminates the need to open RFB ports in the VNC host's firewall, it ensures that the RFB connection is encrypted on the server-area network, and it allows the TurboVNC Session Manager to be used with TurboVNC hosts that are behind an SSH gateway. Thus, I initially thought it best to repurpose the Via parameter to specify a jump host and to hide the traditional Via functionality behind a Java system property (turbovnc.viajump.) This was effectively a deprecation model for the traditional Via feature and effectively made the jump host feature opt-out instead of opt-in. However, because Via can also be used to specify an UltraVNC Repeater gateway, repurposing the parameter made it impossible to specify different SSH ports for the jump host and VNC host without using an OpenSSH config file. I could have hidden the UltraVNC Repeater gateway feature behind turbovnc.viajump as well, but that would have created a backward compatibility issue. (For instance, if saved options from a previous version of TurboVNC specified Via={gateway_host}:1, then TurboVNC 3.2 would have interpreted 1 as an SSH port instead of an UltraVNC Repeater display number.) I could have also added a new parameter (ViaSSHPort, for example) for specifying the jump host's SSH port, but ultimately it was less confusing to just introduce a dedicated parameter for specifying a jump host and to leave Via alone. The new Jump parameter behaves identically to ssh -J, except that it does not allow multiple comma-separated hops to be specified. Closes #440
Upon even further consideration, hiding the UltraVNC Repeater functionality behind Notes:
|
I can confirm that the new GUI configuration and ssh gateway feature works 👍 thanks so much |
Following up on #372
A minimal ~/.ssh/config with ProxyJump config works as expected now (if I drop the config problems from #439) where my config looks like:
However, the pure command line and GUI versions of vncviewer it doesn't appear to be possible to configure vncviewer to use a different port for the SSH gateway (non 22 port) than for the SSH target machine (22 port).
(Removing ~/.ssh/config temporarily for testing)
If I specify
-SSHPort <other than 22>
on the command line, I can't tell if the gateway port is using that, or not, the logs don't provide enough detail, even at maximum loglevel.The text was updated successfully, but these errors were encountered: