Merge pull request #40 from eatenbyagrue/master

Solves auth problems on some platforms
This commit is contained in:
Jeff Lindsay 2012-01-19 10:49:19 -08:00
commit aa6248ff72
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class LocalTunnel::Tunnel
def start_tunnel
port = @port
tunnel = @tunnel
gateway = Net::SSH::Gateway.new(@host, tunnel['user'])
gateway = Net::SSH::Gateway.new(@host, tunnel['user'], :auth_methods => %w{ publickey })
gateway.open_remote(port.to_i, '127.0.0.1', tunnel['through_port'].to_i) do |rp,rh|
puts " " << tunnel['banner'] if tunnel.has_key? 'banner'
if File.exists?(File.expand_path(SHELL_HOOK_FILE))