My page explains how to optimize SSH connections speed to remote servers to save time. This is particularly useful when performing multiple operations on a remote machine.

How To Reuse SSH Connection To Speed Up Remote Login Process Using Multiplexing: https://www.cyberciti.biz/faq/linux-unix-reuse-openssh-connection/ #linux #unix #macos #opensource #freebsd

@nixCraft
The only downside is this:

  • you open a first connection
  • you open a second connection
  • you want to close the first connection
  • you can't, because the second connection is still up
@nixCraft oh, interesting I have a jump host and behind that hundred computers. And I need to run a command on each of them. Doing 100 ssh in parallel does not work, as several fail. I guess because out of connections on my laptop.
So this trick will be very useful.
Just need to check how many outgoing connections the jumphost can handle.