Score:1

Cannot connect to Ubuntu 22.04 through RDP

be flag

PROBLEM: can't connect to my Ubuntu server through RDP.

MSTSC RETURNS:

[Window Title] Remote Desktop Connection

[Content] Remote Desktop can't connect to the remote computer for one of these reasons:

  1. Remote access to the server is not enabled
  2. The remote computer is turned off
  3. The remote computer is not available on the network

Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.

[Expanded Information] Error code: 0x204 Extended error code: 0x0

XRDP INSTALLATION PROCESS I USED:

  1. sudo apt-get update
  2. sudo apt install xfce4 xfce4-goodies xrdp net-tools xorg dbus-x11 x11-xserver-utils #I followed different installation guides in case the problem was caused by lacking some packages + I installed net-tools to check stuff with netstat
  3. sudo systemctl status #checked that xrdp was running
  4. sudo adduser xrdp ssl-cert
  5. sudo systemctl restart xrdp
  6. sudo ufw allow from any to any port 3389
  7. sudo ufw allow 3389

SOLUTIONS I TRIED:

  1. made sure that xrdp was listening to 3389 using netstat
  2. made sure that 3389 port was opened
  3. made sure that the VM port was opened in the VM hosting service I use
  4. made sure that the xrdp.ini file didn't have incorrect setting inside
  5. made sure use_vsocket was set to =false
  6. made sure that automatic login was turned off
  7. tried logging out and connecting through mstsc, got the same result
  8. tried rebooting :)
  9. went through xrdp logs with journalctl xrdp - seems like there was no connection

INFORMATION THAT MIGHT BE VALUABLE:

  1. for connection I'm trying to use the default user "ubuntu" with sudo privileges which was created during VM set up
  2. I'm new
Raffa avatar
jp flag
`journalctl xrdp` seems a bit of an odd syntax … You might want to use `journalctl --grep='xrdp'` to search the logs … Also what client are you using to connect and on which OS?
gunter avatar
be flag
Thanks for the tip, I'm trying to connect from Win 11 Home Ed, base RDP client
Raffa avatar
jp flag
Windows client appears to not support encryption and you might need to disable it … See for example https://askubuntu.com/a/1326144
I sit in a Tesla and translated this thread with Ai:

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.