I currently have a Ruby (Rails) application that needs to make many short SSH connections. This works great using the Ruby Net :: SSH library, except that the application must log in and negotiate keys every time I want to make a command that is too slow.
Is there a way to enable Control Master with Ruby Net :: SSH? When testing on the command line, this makes logins (after the first) very fast, since the connection is already open (keys are agreed, etc.).
If there is no way to do this using Net :: SSH, can anyone suggest an alternative library that could do this?
I assume this should be a general requirement, so hopefully someone can help.
Thanks!
source share