How to achieve syncshell service in Net::SSH v2?


#1

Hi,

I have been using Net::SSH package for quite a long time and been using
syncshell service that was introduced in the initial version of net-ssh
gem.

http://net-ssh.rubyforge.org/ssh/v1/chapter-5.html#s4

After upgrading to newer version I found that I can no longer use
syncshell and have to manually open channel and provide callbacks for
execution of each command. Please somebody enlighten me if there is any
easier way to do this.