This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Ruby and the fly likes Problems creating an SSH tunnel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Problems creating an SSH tunnel" Watch "Problems creating an SSH tunnel" New topic

Problems creating an SSH tunnel

Eric Hermann

Joined: May 07, 2013
Posts: 6
I'm writing a series of test that test credit cart transactions and our card service relies on communicating to a sabrix server through an ssh tunnel.
I've created something that works but I have to admit, it doesn't make sense because I'm using a combination of a unix exec call and Net::SSH::Gateway.
In order for the ssh tunnel work with the tests to to work they HAVE to work in conjunction to each other. I'm ok with it but it seems like 1 out of 10 times, the tests will fail because the ssh tunnel isn't open for some reason. I've tried about every solution out there but can't seem to get anything else to work. Here's the code:

And in my teardown method, I'm killing the ssh tunnel like this:

Any ideas?

I agree. Here's the link:
subject: Problems creating an SSH tunnel
jQuery in Action, 3rd edition