远程服务器上的新终结者窗口

ter*_*don 7 ssh terminal gnome-terminator

当通过 ssh 连接时,有没有办法在远程服务器上打开一个新的终结者窗格?

我正在寻找类似于tmux可以完成的操作(根据此答案),但使用终止符。我想使用终结器 ssh 到远程机器,然后如果我拆分终结器窗口,新的 shell 将在远程机器上打开。

小智 10

终结者和远程系统的这个问题的答案是创建一个终结者配置文件,其中它“作为登录外壳”运行的命令是用于访问远程服务器的 SSH 连接字符串。最好使用基于 SSH 密钥的身份验证或 openssh controlmaster/controlpath 设置来进行连接共享。

对此的终结器配置摘录:

~/.config/terminator/config

[profiles]
[[default]]
 scroll_on_output = False
 exit_action = restart
 scrollback_infinite = True
[[remotehost]]
 use_custom_command = True
 exit_action = restart
 custom_command = ssh user@remotehost
Run Code Online (Sandbox Code Playgroud)

只需运行terminator -p remotehost即可使用此配置文件。每次“拆分”终端时,它都会使用此配置文件,从而打开一个新的 SSH 连接。

对于 ssh controlmaster,请参阅:http : //www.debian-administration.org/articles/290