fixed auth problems on some machines
This commit is contained in:
parent
fc6a1f0cfe
commit
353418f14c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue