-1

I'm working through some inital setup of a dev environment for Facebook trying to use Facebooker and its SSH tunnel to expose my dev site. I’m having a lot of trouble with the SSH tunnel. I’ve made sure port 4007 is open and my SSH config contains both GatewayPorts yes and GatewayPorts clientspecified.

I can connect to the tunnel OK on my domain from my browser but when I try from my facebook application it just times out.

If I review the debug information when I load the domain in my browser I see:

debug1: client_input_channel_open: ctype forwarded-tcpip rchan 5 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen port 4007, originator 99.88.246.92 port 56423
debug1: connect_next: host localhost ([127.0.0.1]:3000) in progress, fd=6
debug1: channel 1: new [99.88.246.92]
debug1: confirm forwarded-tcpip
debug1: channel 1: connected to localhost port 3000
debug1: channel 2: free: 99.88.246.92, nchannels 4
debug1: channel 3: free: 99.88.246.92, nchannels 3
debug1: channel 1: free: 99.88.246.92, nchannels 2

When I connect from facebook I just get:

debug1: client_input_channel_open: ctype forwarded-tcpip rchan 2 win 2097152 max 32768
debug1: client_request_forwarded_tcpip: listen port 4007, originator 69.63.189.246 port 44679
debug1: connect_next: host localhost ([127.0.0.1]:3000) in progress, fd=6
debug1: channel 1: new [69.63.189.246]
debug1: confirm forwarded-tcpip
debug1: channel 1: connected to localhost port 3000

I’m fairly new to this development method (SSH Tunneling), is there any advice anyone can offer?

4

1 回答 1

0

当你说“我可以从我的浏览器连接到我的域上的隧道”时,你到底是什么意思?

让您的机器在 Internet GATEWAY 上可见,并且您的开发机器运行您的 Rails 服务器 DEV。如果您输入http://GATEWAY:4007 您在 DEV 上的 ruby​​ 服务器会看到请求吗?

如果是这种情况,您可能会遇到 dns 问题,即 facebook 无法解析您输入的域名。尝试将 GATEWAY 的 ip 在 facebook 上作为画布 url 输入。您是否也验证过您的 GATEWAY 可以被互联网上的其他机器击中?

于 2010-12-09T00:45:00.877 回答