Linux 容器上使用 screen -x 命令时出现“必须连接到终端错误”

2024-01-30

我正在使用带有 Proxmox 4 的 Linux 容器。 当我连接到 Ubuntu 16.04 容器时:

pct enter <id>

我使用屏幕运行脚本并尝试观察运行的进程:

screen -x <processname>

我收到错误:

必须连接终端错误

当我连接时:

ssh -t <user>@<container_ip>

它有效,我可以将显示器连接到屏幕上。

我该如何使用屏幕-x当我与百分比输入 ?


我找到了适用于相同情况的解决方案(https://www.svennd.be/screen-in-lxc-attach https://www.svennd.be/screen-in-lxc-attach)

执行这个

脚本/dev/null

然后你可以运行 screen 等等

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Linux 容器上使用 screen -x 命令时出现“必须连接到终端错误” 的相关文章

随机推荐