Multiple command prompts with one SSH connection

sshssh-tunnel

I have a need to do a lot in vim on a remote server which I need to SSH into. I find that it is best if I can look at multiple documents in multiple windows on my desktop, so to do this I open two or three SSH sessions to the remote server. This is getting a bit tedious though, as I have to re-enter the un/pw several times, and I have to make sure that each window remains active enough to prevent automatic log-off.

Is there a way to SSH in once and then piggy back on it with different terminal windows? (I use OSX and Ubuntu predominantly).

Best Answer

Screen and tmux offer you the answers you're looking for, but to expand your question a bit, I would like to suggest you look into the matter of SSH key-based authentication so that you don't need the username and password every time you SSH into your remote server :-)

Related Question