Skip to content
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

"Remote-desktop to a host using VNC" guide under "Encrypt VNC traffic through an SSH tunnel" - Method 3 #1190

Open
headwhacker opened this issue Jun 6, 2020 · 5 comments
Assignees
Labels
P3 Low Priority

Comments

@headwhacker
Copy link

Under "Encrypt VNC traffic through an SSH tunnel" - Method 3, the document says "No change is needed to the xvnc@service script".

However, I can see the socket binds to all interface for port 5900. This means a vnc client can establish a direct connection to the xvnc server without an ssh tunnel established.

The document needs to be amended. Instead of changing xvnc@service, the xvnc.socket needs to be updated for Method 3.

[Socket]
ListenStream=127.0.0.1:5900
Accept=yes

This will force the socket to bind only with the localhost interface and remote connection from a vnc client will only work with an ssh tunnel. This will block direct connection to port 5900.

Environment (please complete the following):

  • Clear Linux OS VERSION_ID=33300
  • tigervnc: version: 33250
@headwhacker headwhacker added the P2 Medium Priority label Jun 6, 2020
@github-actions
Copy link

github-actions bot commented Jun 6, 2020

Welcome to Clear Linux* OS Docs. Thanks for submitting your first issue.

@mvincerx
Copy link
Contributor

mvincerx commented Jun 9, 2020

Did changes in GDM have an impact on Method 3?
@mvincerx follow up @mrkz

@mvincerx
Copy link
Contributor

mvincerx commented Jun 9, 2020

@mrkz please see my email.

@eadamsintel
Copy link
Contributor

Did changes in GDM have an impact on Method 3?

I can confirm that @headwhacker lightdm workaround mentioned at #1108 (comment) worked for me. However, I can't get the ListenStream=127.0.0.1:5900 to work and am not sure if it is a bug. If I just leave it as :5900 and SSH in with my local port 5900 remapped to <VNC server ip>:5900 and use a VNC address of localhost:5900 then I can ssh in securely through the encrypted tunnel.

I should also note that if I put ListenStream=<my windows ip>:5900 and restart the service it fails to restart.

@mvincerx
Copy link
Contributor

mvincerx commented Jun 16, 2020

@bktan8 please help out. Please try out using 127.0.0.1.

@mvincerx mvincerx added P3 Low Priority and removed P2 Medium Priority labels Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low Priority
Projects
None yet
Development

No branches or pull requests

4 participants