I have a problem regarding logining a ubuntu both locally and remotely at the same time. I have two computers A and B, A with ubuntu 16.04LTS system and B with windows 10 system. I can physically access both A and B and launch softwares/applications using these computers. What I want to do is to access computer A (ubuntu 16.04) from computer B (windows 10) through remote desktop connection. But I have encountered problems doing this.
On computer A I install xrdp using these command:
sudo apt install xrdp sudo systemctl enable xrdp
After that, I launch the remote desktop connection application on computer B and try to connect to A. If I do not login computer A locally, everything is fine and I can login to A from B remotely through the remote desktop, as illustrated in figure 1.
However, if I have already logined computer A locally, then I cannot login it from B through remote desktop (for the same user account on A). The errors are as follows in figure 2.
I search online and find warning about logging out ubuntu account locally before connecting to it remotely but didn't get the reason behind this and how I can fix this problem. Is there anyone who knows how to fix this problem or has similar problems?
figure 1: login successfully
figure 2: login failed