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

Using html5 client via ssh #4194

Closed
thorstenwagner opened this issue Apr 19, 2024 · 19 comments
Closed

Using html5 client via ssh #4194

thorstenwagner opened this issue Apr 19, 2024 · 19 comments
Labels
enhancement New feature or request

Comments

@thorstenwagner
Copy link

Hi,

I found this interesting article:
https://github.com/Xpra-org/xpra/blob/master/docs/Network/SSH.md

Do you have suggestions how access the html5 client? I used ssh port forwarding, but it is quite slow.

Best,
Thorsten

@thorstenwagner thorstenwagner added the enhancement New feature or request label Apr 19, 2024
@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

I have no idea how you would configure the xpra-html5 client to connect via SSH.
Doesn't make much sense to me.

@thorstenwagner
Copy link
Author

thorstenwagner commented Apr 19, 2024

I was just wondering, because I don't want the users install xpra locally. So if they could start xpra on lets say a HPC system, and then simply do ssh port forwarding and work with it in their browsers, would be very nice.

Do you maybe know a solution to that? Or how to improve the performance when I used port forwarding?

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

Why not just let them connect directly to an https enabled server, that's much easier to deploy.

@thorstenwagner
Copy link
Author

I would assume that ssl port might not be open on the HPC system?

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

I would assume that ssl port might not be open on the HPC system?

And the SSH port is?

Port forwarding will add latency which makes xpra very slow: this problem is known as "TCP over TCP".
Don't do it.

@thorstenwagner
Copy link
Author

Well, you connect to the HPC systems by ssh, so yes. Do both mostly Often additionally secured via 2-factor-auth etc

for example, for our super computer this works:
ssh -T -p 22 username@my.super.computer.de

but this isnt working:
ssh -T -p 443 username@my.super.computer.de

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

but this isnt working:

Why would it?
You can't ssh to an https port unless you put an ssh server on there.

@thorstenwagner
Copy link
Author

Ok, I will look into it. However, I just tried port forwarding with -C and its working very well (without its terrible) !

This is how I connect

ssh -C -N -L 8082:localhost:22293 twagner@visualization.node.de

The only thing I noticed is a constantly see a context menu with "paste" popping up when I click somewhere. Shall I open a new issue for that?

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

The only thing I noticed is a constantly see a context menu with "paste" popping up when I click somewhere

I think we already have one for that: this is caused by Safari (right?) and there is a workaround in newer versions of the html5 client.

@thorstenwagner
Copy link
Author

Its firefox. Should I just try the current html5 master?

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

Is it on MacOS?
I forgot, this is NOT fixed: Xpra-org/xpra-html5#226 (comment)

@thorstenwagner
Copy link
Author

Its linux (manjaro)

@thorstenwagner
Copy link
Author

I also started the server with --clipboard=No, but that did not help.

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

No, you need to turn off the clipboard in the html5 client.

@thorstenwagner
Copy link
Author

Can you tell me how?

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

From the connect dialog, there is an option.

@thorstenwagner
Copy link
Author

Cool! That works :-) Is there a way on the server side to deactivate the clipboard by default?

@totaam
Copy link
Collaborator

totaam commented Apr 19, 2024

You can configure the client via:

  • the URL by adding ?clipboard=no to it
  • default-settings.txt in /usr/share/xpra/www/default-settings.txt (also usually symlinked to /etc/xpra)

@thorstenwagner
Copy link
Author

Nice! Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants