所以我有一台 mac 在工作,我喜欢用这样的东西 ssh 进入我的 linux 盒子:
$ ssh -Xt user@mylinux
Run Code Online (Sandbox Code Playgroud)
我可以在我的 linux 机器上登录并启动任何 X11 应用程序,没问题。但是大约 15 分钟后,我又回到了一个会话(ssh 仍在运行并连接),我得到:
$ xterm
xterm Xt error: Can't open display: localhost:12.0
Run Code Online (Sandbox Code Playgroud)
我试过使用-o "TCPKeepAlive yes"or -o "ServerAliveInterval 30",但仍然得到相同的行为。
在 ssh 或 Mac 或我的 linux sshd conf 中是否有某些东西在一段时间不活动后会终止 X 转发?