4

I have a few SSH tunnels setup for auto-connection/re-connection with Shimo.

Is there a way of attaching shell access to those existing tunnels and how if so? Or will I have to establish a new ssh connection just for shell access?

Alex Kulinkovich
  • 167
  • 2
  • 2
  • 8
  • What's the problem with just opening another connection? – Sven Jul 13 '13 at 20:38
  • No, no problem at all, I was just curious and got frustrated when google didn't shed any light on this. I've seen people attaching output of a process to a file while it was running so I was just wondering if something similar would be possible with ssh. – Vigintas Labakojis Jul 13 '13 at 20:45

1 Answers1

5

I think what you want is to to set ControlMaster yes in your initial connection. Then you can connect additional sessions through the same connection, by connecting them to a control socket. See ControlMaster in ssh_config(5) for details.

Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47