I'm just dealing with a couple of personal computers, so it was far easier to manually sync the UID/GID. But yes, if you're dealing with a network with many users you will want to find another approach.
`ssh -X` will work for some X applications. Heck, if you're connections are between two computers on a LAN and you don't care much about security, you can just make sure `DISPLAY` is set and open up X with "xhosts +". Tunnelling through `ssh` is useful when you're going across a public network, trying to get into a private network (heck, I've used ssh tunnelling for Remote Desktop between Windows machines in this case), or need a secure connection for any number of other reasons. A couple of caveats though, not all X applications will work this way and you have to redirect audio yourself. This would actually be my preferred approach since it involves displaying an application remotely, rather than an entire session. That said, there are too many caveats these days. Thirty years ago though, it was great!
`ssh -X` will work for some X applications. Heck, if you're connections are between two computers on a LAN and you don't care much about security, you can just make sure `DISPLAY` is set and open up X with "xhosts +". Tunnelling through `ssh` is useful when you're going across a public network, trying to get into a private network (heck, I've used ssh tunnelling for Remote Desktop between Windows machines in this case), or need a secure connection for any number of other reasons. A couple of caveats though, not all X applications will work this way and you have to redirect audio yourself. This would actually be my preferred approach since it involves displaying an application remotely, rather than an entire session. That said, there are too many caveats these days. Thirty years ago though, it was great!