- 如果没有运行tmux,则运行: tmux
- 然后在tmux内部执行如下命令,会同时打开链接到两台机器的ssh会话,分屏为上下两
tmux new-window 'sudo -u admin ssh pesystem041124.cm4' ;
split-window 'sudo -u admin ssh pesystem041147.cm4' ;
select-pane -U
Last active
December 29, 2015 09:48
-
-
Save ChinaXing/7652439 to your computer and use it in GitHub Desktop.
使用tmux同时打开多个ssh 链接在一个窗口
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment