How to duplicate a remote session in Terminal?
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.
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.