附加到另一台计算机上已运行的shell

时间:2018-01-13 09:49:08

标签: linux bash terminal

我在机器A上的Linux终端上运行了一个shell(PID 123)。我正在另一个房间/城市/国家的机器B上工作,并且可以通过SSH连接到机器A.但是有没有办法控制机器A上的shell /进程123?

1 个答案:

答案 0 :(得分:1)

reptyr就是这样做的:https://github.com/nelhage/reptyr

其作者撰写的博文(包括screenify等相关内容的链接)位于:https://blog.nelhage.com/2011/01/reptyr-attach-a-running-process-to-a-new-terminal/