在 AWS EC2 开启远程桌面连接
1. 更新,升级和安装准备
sudo apt-get update
sudo apt-get upgrade
2. 配置 sshd_config 允许密码访问
sudo vi /etc/ssh/sshd_config
将PasswordAuthentication
选项设置为yes
#Change to no to disable tunnelled clear text passwords
#PasswordAuthentication no
PasswordAuthentication yes
3. 重启 ssh 服务让配置生效
sudo /etc/init.d/ssh restart
4. 为用户 Ubuntu 设置密码
sudo -i
passwd ubuntu
su ubuntu
5. 为 Ubuntu Linux Instance 安装桌面功能
export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install -y ubuntu-desktop
6. 安装 XRDP 和其他 xfce4 资源
sudo apt-