The "could not open direct channel" error is the remote server saying that it couldn't forward the connection. It could be that the hostname you are using isn't recognized by the gateway as a valid server, or that tcp-ip forwarding is disabled on the gateway's ssh server.

- Jamis

On Apr 25, 2008, at 3:20 PM, statikuz wrote:


Howdy - I'm trying to deploy from my local machine to a server behind
a firewall via a gateway. I have the :gateway option set up in my
deploy.rb file, and when I execute 'cap deploy:check' I see "gateway
connection established" then "establishing connection to `myserver'
via gateway" and then I get this error:

/Library/Ruby/Gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/service/forward/
driver.rb:126:in `direct_channel': could not open direct channel for
65535:myserver:22 (1, open failed) (Net::SSH::Exception)

I use an SSH key on the gateway to connect to this server, and I can
manually SSH with no problems. The SSH server on the remote servers is
running on port 22, as is the server on the gateway. Any thoughts?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to