Using Capistrano as a stand-alone SSH client

If you do a lot of SSH work in your Ruby code, you know there are many options available to you:

You can do Net::SSH or run the ssh client as a separate process. Here is an example of using Capistrano to do the same. It can have some advantages like allowing ssh gateways all of which are available to you if you use Net::SSH but using Capistrano just makes it easier.

Here is a simple example:

Try Cloud 66 for Free, No credit card required