2 min read

Logging into Ubuntu 22.04 Remote Desktop

I’d set up and configured remote desktop on my Ubuntu desktop machine, but when I tried logging in from Windows I always saw an error (“An authentication error has occurred. The token supplied to the function is invalid”):

mstsc

Error dialog reading: An authentication error has occurred. The token supplied to the function is invalid.

Luckily I found this Ubuntu bug with the workaround: use .\username instead of username because Microsoft is defaulting to something stupid.

Update: That was interesting. It works until the screen locks. Luckily there’s an extension for Gnome that lets you set up remote desktop to allow you to log in when the screen’s locked.