Score:0

Speed-optimization of Xrdp server connection when connected via SSH tunnel

ky flag

I've established a connection to a server based on port-forwarded local Xrdp, through an SSH tunnel. If my understanding is correct, then I could illustrate such network as follows:

      ╷────<──port xxxx──<────╷        )
      │                       │        )                                    (            )
╷───────────╷           ╷───────────╷  )                                    (            )
│ LOCALHOST │           │ LOCALHOST │===============port ssh=================== CLIENT   )
╵───────────╵           ╵───────────╵  )                                    (            ) 
      │                       │        )                                    (            )
      ╵────>──port xrdp──>────╵        )
                                       )
               SERVER                  )

The connection between the server and client happens only in the SSH tunnel 'port ssh', which is encrypted. So I am thinking that xrdp server doesn't need any encryption configured by default in /etc/xrdp/xrdp.ini which will effectively do nothing but reducing performance.

Am I thinking correctly? If so, what xrdp config can optimize the performance?

Score:0
in flag
  1. That's correct. If your xrdp in running on the ssh server, encryption is not mandatory in you xrdp config. Although the encryption layer on modern hardware is generally speaking not so much resource consuming (neither CPU or bandwidth).

  2. You could use compression ( ssh -C -L localhost:port ) when establishing the tunnel. If rdp data is compressible, you could save a few bits.

I don't know about xrdp optimizations , and can't help on the xrdp.ini part.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.