remote connect to Ubuntu Desktop on AWS

  • 23
  • 0
  • 2024-06-06

remote connect to Ubuntu Desktop on AWS

請在安全組中,先新增3389port 允許0.0.0.0/0 

先ssh 到 ubuntu terminal

Step 2. 安裝桌面環境

sudo apt-get update 

sudo apt-get install -y xfce4 

#安裝遠端桌面伺服器
sudo apt-get install -y xrdp 

#開機時啟動服務
sudo systemctl enable xrdp 


#設定 xrdp 使用 xfce 為桌面環境
echo xfce4-session >~/.xsession 

sudo service xrdp restart 


#查看 rdp 接聽狀態
sudo netstat -plnt | grep rdp 

#新增遠端使用者
sudo adduser nick