Steffen Dettmer wrote:
Do you need an encrypted tunnel between xdm and the server or between xdm and the client? I think the later, ain't?
Right, I need the later. An encrypted X-connection between an xdm on machine A and an X-Server on machine B. I want to be able to begin an X-session from machine B by quering for an xdm somewhere in the subnet and logging in on machine A from B (X-terminal, diskless PC). And want everything to be encrypted.
[...] If you really need a complete session with xdm, you could set up ssh portforwaring before connecting. In that case you enable an ssh connection, forward the needed port(s) (i.e. 6000 IIRC), and connect to localhost. SSH forwards this connection encrypted to the other machine.
IFAIK, the X-server on machine B looks for an xdm by quering port 177 in the subnet where it is (if set up to query). The xdm on machine A looks for a free port on machine A after accepting the request from machine B to set up the connection through to machine B´s X-server´s port 6000 + Displaynumber. So it would be necessary to dinamically set up an SSH/SSL-tunnel from the port on machine A (choosen by the xdm running there) and port 6000 + Displaynumber on machine B. Did I miss something? How can this be done? Where can I find info sources on this topic? Thanks in advance! Anibal