Need to setup xrdp to connect from a Windows machine, but anyl connection fails with a black screen and “Reconnection attempt [0-1] of 20”. The only notes available are either too old (i.e. 42.3), or just have the xrdp installation notes.
There are ssl_tls_print_error: SSL_write: Failure in SSL library (protocol error?) errors in /var/log/messages, … but there don’t seem to be any notes about configuring SSL/TLS for xRDP.
I have been running xrdp with no issues for a long time on Leap 15.2 and Tumbleweed connecting to it from both windows and an iPad. Can you give more details of what you installed and how; along with how you are trying to make the connection from the windows box? Have you enabled the xrdp service and opened the service in the firewall?
zypper install -t pattern gnome (on Azure VM, also tested on a physical machine w/Gome, … and a local VM)
Install and start xrdp:
zypper in xrdp
systemctl enable xrdp
systemctl start xrdp
Yast: “Network Services” enable “Remote Administration with VNC”
At one point, there were errors about the cert & key in xrdp, so I testing with a manually created cert & key per the note in /etc/xrdp.ini. No change.
The desktop is Gnome, … testing with Remmina, with and without login credentials.
The only result is the flashing black screen described above indicating connection failure.
Part of the issue may be the lack of any definitive documentation, … xrdp has a configuration to connect to a window manager via xorg, yet the docs seem to show VNC connections. In this case, we need an RDP connection as the client machines are Windows.
Firstly, if you have a firewall have you enabled RDP to pass through it or if not sure temporarily disable it.
XRDP is just a protocol and a wrapper for the session which is normally VNC. So some form of VNC needs to be installed too and I use tigervnc.
Now when you connect via RDP (I use the windows client but Remmina I sure will be similar) if you do not provide credentials you should get a splash screen - the top item should be a dropdown list for session with options like Xvnc/Xorg/vnc-any/etc… Select ‘Xvnc’ and enter username and password. Are you getting this far?
If you get past that it should start a vnc session and run a window manager as defined in /etc/xrdp/startwm.sh. Note this script does not necessarily do what the default setting are for the system. I have found several versions of this script so you may need to have a plough through it but it should start something.
Ok, given what I have said, how far are you getting?
Nope, … just the black screen described. The black screen seems to indicate a connection is happening, … but something is broken between X, VNC, & xRDP.
OK, installed Remmina on a Tumbleweed virtual machine.
RDPed to an openSUSE box and got a blank screen.
RDPed to a Windows 7 box, it asked me to confirm the identity of the machine as being OK and then asked for my credentials. It then entered a reconnection loop exactly as you have in your subject line of this thread.
RDPed again to the openSUSE box and it now works! I got the splash screen, selected Xvnc and username and password and it’s all fine.
Completely exited Remmina and RDPed into the openSUSE box and it works. As does connecting by setting up a Quick Connect profile.
RDPing into my Raspberry Pi (running raspian) however also enters the reconnection loop.
So sum success and some failure … that’s life I guess.