Skip to content

Instantly share code, notes, and snippets.

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