Capistrano does not respect a user's ~/.ssh/config file when
referencing a port. This is problematic when attempting to use
another solution for gateways, such as is required when one needs to
use two gateways at the same time.
Example config file that will demonstrate the failed behavior:
Host web2
port 65533
hostname localhost
Capistrano will attempt to connect to localhost on port 22 when
connecting to 'web2'.
Capistrano looks for the port option in several places, and explicitly
sets the port to 22 if it's not set within Capistrano. Net::SSH
correctly overrides the configuration file with this explicit port
setting.
A patch that leaves the port setting undefined and allows Net::SSH to
set a default port is at:
http://github.com/bhuga/capistrano/commit/bd19bf801b93db61ff647ed22eb85fba56c9e3fd
The test cases already cover explicit setting of port, so there were
none to add.
Ben
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---