-
-
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
Commit db3d30dcad breaks automatic tunnelling. #321
Comments
The code prior to that commit did not change |
In The side effect of this is that the two referenced lines now operate differently to before that change. That is, the |
This is not necessarily a problem, except that it is a breaking change that isn't documented, and in fact the relevant documentation for the tunnel option suggests that it should be automatically set by the session manager. See: turbovnc/java/com/turbovnc/rfb/Params.java Lines 830 to 835 in 473e569
and turbovnc/java/com/turbovnc/rfb/Params.java Lines 874 to 884 in 473e569
|
I don't understand your point. External SSH clients are not yet supported with the Session Manager. (See #148.) The modes that should work are:
If one of those modes does not work, then please provide exact steps to reproduce the failure. |
Ah. I think I see the issue. When |
Please don’t disable that mode of behaviour. I’ve been using it successfully for over a year and rely on it. |
Why is the built-in SSH client unsuitable for your needs? If you're using the Session Manager, then you are already using the built-in SSH client to connect to the host and manage sessions. The external SSH client only comes into play when you connect to a session. The Session Manager expects that the built-in SSH client will be used. Thus, it leaves the SSH tunnel open, the assumption being that the viewer will reuse the tunnel for the actual connection. As currently implemented, using I am not philosophically opposed to allowing |
I don’t think it can leave the other connection open because I don’t get an error opening the required ports with the external ssh program. I’d have to check that though to confirm. My use case is that I open additional port forwarding, specifically to socket files on the server which can have access controls applied to them. ETA: Actually I guess the session could be left open so long as it hasn’t tried to set up a tunnel yet. |
Yes, it is effectively the same as if you had opened a separate SSH session in another window. Port forwarding is only enabled for the viewer SSH session, not the Session Manager SSH session. (When using the built-in SSH client, the two sessions are the same.) I will go ahead and fix the issue. Just understand that using |
In db3d30d you changed the tunnelling handling with the session manager to not change the provided option, but rather to use a local variable calculation. This then breaks behaviour in the
fillCmdPattern()
method isTunnel.java
since it is still looking at the manually set option rather than using the session manager behaviour. The documentation inParams.java
says that the tunnel options if "effectively set" when the session manager is being used, but this is no longer entirely true.turbovnc/java/com/turbovnc/vncviewer/Tunnel.java
Lines 284 to 285 in f2b115f
turbovnc/java/com/turbovnc/vncviewer/Tunnel.java
Lines 308 to 309 in f2b115f
The text was updated successfully, but these errors were encountered: