So I originally posted this question about some issues I'm having with RDP sessions over XRDP on Debian 11:
Configuration Issues with XRDP and Gnome on Debian 11 server
After some further investigating, I found that xrdp-sesman
isn't listening on port 3350 like it should. This is what I see when checking on the active ports by calling netstat -plnta4
:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:44963 0.0.0.0:* LISTEN 650/casaos-gateway
tcp 0 0 127.0.0.1:39657 0.0.0.0:* LISTEN 667/casaos
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1702/smbd
tcp 0 0 127.0.0.1:38643 0.0.0.0:* LISTEN 650/casaos-gateway
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 632/sshd: /usr/sbin
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 596/cupsd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1702/smbd
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 637/xrdp
tcp 0 0 127.0.0.1:42909 0.0.0.0:* LISTEN 740/casaos-user-ser
I can see xrdp
active on port 3389, which is expected, but I don't see anything listening on 3350, which xrdp-sesman
should be. I also ran systemctl list-units
and I can see that xrdp-sesman
is actively running. I'm not sure where I need to look in order to get this fixed. I've tried hunting it all down, but I can't seem to find anything relevant. If it helps, here's the current values in /etc/xrdp/sesman.ini
:
[Globals]
ListenAddress=0.0.0.0
#ListenPort=sesman.socket
ListenPort=3350
EnableUserWindowManager=true
UserWindowManager=startwm.sh
DefaultWindowManager=startwm.sh
ReconnectScript=reconnectwm.sh
[Security]
AllowRootLogin=true
MaxLoginRetry=4
TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
AlwaysGroupCheck=false
RestrictOutboundClipboard=none
RestrictInboundClipboard=none
[Sessions]
X11DisplayOffset=10
MaxSessions=50
KillDisconnected=false
DisconnectedTimeLimit=0
IdleTimeLimit=0
Policy=Default
[Logging]
LogFile=xrdp-sesman.log
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false
[LoggingPerLogger]
#sesman.c=INFO
#main()=INFO
[Xorg]
param=Xorg
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log
[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96
[Chansrv]
#FuseMountName=/run/user/%u/thinclient_drives
#FuseMountName=/media/thinclient_drives/%U/thinclient_drives
FuseMountName=thinclient_drives
FileUmask=077
#EnableFuseMount=false
#UseNautilus3FlistFormat=true
[ChansrvLogging]
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false
[ChansrvLoggingPerLogger]
#chansrv.c=INFO
#main()=INFO
[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
I don't think that I have made any changes to this file myself, so this should be the default contents (minus all the comments). If I need to post the contents of any other config/ini file, let me know.