Kali Linux开启RDP远程桌面一键开启脚本

安装脚本

#!/bin/sh
echo "[i] Updating and upgrading Kali (this will take a while)"
apt-get update
apt-get full-upgrade -y

echo "[i] Installing Xfce4 & xrdp (this will take a while as well)"
apt-get install -y kali-desktop-xfce xorg xrdp

echo "[i] Configuring xrdp to listen to port 3390 (but not starting the service)"
sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini

安装后重启xrdp

sudo systemctl start xrdp
sudo systemctl enable xrdp

远程桌面端口是3390,不是3389,如果使用远程桌面时出现闪退现象,要在使用远程桌面连接之前,从界面上logout

© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容