0

Is it possible to duplicate a remote session in macos terminal?

I want to clone this session without having to connect to the remote host again, so I have two tabs for working expediently.

enter image description here

2
  • 1
    Is there some reason you cannot just open another tab and type the command you want to execute? Commented Jul 30, 2021 at 1:38
  • I will re-input password again.
    – aircraft
    Commented Jul 30, 2021 at 2:12

1 Answer 1

1

Each Terminal tab has its own shell and its own connection to a remote server, that can't be easily duplicated.

But you can use a terminal multiplexer like tmux for this which will run on the remote server. It will not give you a new Terminal window, but you can switch between virtual terminals inside one window/tab, all within one remote login.

If you are using iterm2 there is tmux integration.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .