我是 Ubuntu 服务器的管理员。我有 7 个用户。他们通过 RDP 登录。所以我需要禁用从本地计算机到远程系统的剪贴板。如何实现?
Ubuntu 20.04.3 LTS。
答案1
默认情况下,xRDP 确实会允许剪贴板重定向和驱动器重定向。如果您编辑以下文件
/etc/xrdp/xrdp.ini
滚动文件并找到以下部分
[频道]
你会看到类似这样的内容
[Channels]
; Channel names not listed here will be blocked by XRDP.
; You can block any channel by setting its value to false.
; IMPORTANT! All channels are not supported in all use
; cases even if you set all values to true.
; You can override these settings on each session type
; These settings are only used if allow_channels=true
rdpdr=true
rdpsnd=true
drdynvc=true
cliprdr=true
rail=true
xrdpvr=true
tcutils=true
将 cliprdr(clibpoard 重定向)和 rdpdr(驱动器重定向)的值更改为 false。因此,您的文件应如下所示
[Channels]
; Channel names not listed here will be blocked by XRDP.
; You can block any channel by setting its value to false.
; IMPORTANT! All channels are not supported in all use
; cases even if you set all values to true.
; You can override these settings on each session type
; These settings are only used if allow_channels=true
rdpdr=false
rdpsnd=true
drdynvc=true
cliprdr=false
rail=true
xrdpvr=true
tcutils=true
然后重新启动 xrdp 服务以使用新设置。
希望这能有所帮助,下次见