> Is there a way to do this in net/ssh ?

Take a look at Net::SSH::Gateway:
http://github.com/jamis/net-ssh-gateway/tree/master

And here's a wrapper that takes care of the details (which is really
useful if the environment gets more complex):
http://github.com/Narnach/simple_gate

Delano