Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've used some windows SSH programs, which allow me to spawn new windows based on my current SSH connection.

Is there an easy way to "clone" my terminal window that is connected to a different machine via SSH? I'm hoping to avoid launch multiple windows and logging into each one.

I'm doing this on Ubuntu but would prefer a general Linux solution, as I'd like to be able to do it from CentOS and other flavors too. If there is something better than the terminal window, I'm game too, as long as I can do a yum install of it :)

share|improve this question
    
The second part of my answer in this question may be a good place to start. –  dtmland Jul 26 '13 at 17:20

1 Answer 1

If you use a screen multiplexer such as GNU Screen or tmux (and I would recommend using Byobu on top of one of those), this can be done quite easily.

With tmux, you would do something like the following to open up an existing session:

tmux attach-session

And that will open up and attach to the most recently used session (as gleaned from the man page).

share|improve this answer
    
Is not the question about opening a new SSH session according to the existing one? –  pabouk Jul 27 '13 at 10:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.