Closed PhDLeToanThang closed 7 months ago
Tham khảo: https://askubuntu.com/questions/1245020/xrdp-on-ubuntu-20-04
Remove previously installed xrdp: sudo systemctl disable xrdp sudo systemctl stop xrdp sudo apt purge xrdp sudo apt purge xserver-xorg-core sudo apt purge xserver-xorg-input-all sudo apt purge xorgxrdp sudo apt autoremove -y
Re-install xrdp & required packages: sudo apt install xrdp -y sudo apt install xserver-xorg-core -y sudo apt install xserver-xorg-input-all -y sudo apt install xorgxrdp -y
sudo adduser xrdp ssl-cert # add xrdp into ssl-cert group sudo systemctl start xrdp # start xrdp service systemctl is-active xrdp # check xrdp state
sudo systemctl enable xrdp # start xrdp on system start
Firewall configuration:
sudo ufw allow 3389
sudo ufw allow from 192.168.100.0/24 to any port 3389
Reboot system:
sudo reboot
Tham khảo: https://askubuntu.com/questions/1245020/xrdp-on-ubuntu-20-04
Remove previously installed xrdp: sudo systemctl disable xrdp sudo systemctl stop xrdp sudo apt purge xrdp sudo apt purge xserver-xorg-core sudo apt purge xserver-xorg-input-all sudo apt purge xorgxrdp sudo apt autoremove -y
Re-install xrdp & required packages: sudo apt install xrdp -y sudo apt install xserver-xorg-core -y sudo apt install xserver-xorg-input-all -y sudo apt install xorgxrdp -y
sudo adduser xrdp ssl-cert # add xrdp into ssl-cert group sudo systemctl start xrdp # start xrdp service systemctl is-active xrdp # check xrdp state
sudo systemctl enable xrdp # start xrdp on system start
Firewall configuration:
sudo ufw allow 3389
sudo ufw allow from 192.168.100.0/24 to any port 3389
Reboot system: (không cần thiết)
(có thêm chọn Disable authentication và Ignore Server certificate)
Mở putty kết nối SSH và chạy lệnh check ports: netstat -tuln
Không thấy cổng 3389 được mở trên POD.
Dùng lệnh: service xrdp status (kiểm tra tình trạng lỗi xrdp)