I've got XRDP installed on two of my CentOS7 machines, on one of them , XRDP works fine and allows connections straight away from when the machine is booted up. However, on the other, I have to boot up, then enter the commands:
systemctl stop xrdp
systemctl start xrdp
systemctl enable xrdp
Then it allows connections for about an hour, then I have to use those commands again....
Anyone have any ideas?
systemctl enable xrdp
should set thexrdp
service to start up automatically at boot time. If that is getting undone, it suggests the system may be under some sort of automated management (think Ansible, SaltStack, Puppet or something similar) that is enforcing some settings at intervals of about an hour, including the fact thatxrdp
should be shut down. Talk to your fellow system administrators. – telcoM Jun 07 '20 at 17:26firewalld
, you have already had to do something with it to enable access toxrdp
from the network. But at the basic level,firewalld
only allows enabling/disabling access to services by network interface. If you have just one NIC in use, you'll need the more advanced rich rules to specify thatxrdp
access should be allowed from your own IP subnet(s) only. – telcoM Jun 08 '20 at 07:38