2010-03-11 182 views
-1

我正在通過Facebook的開發環境的一些初始設置嘗試使用Facebooker和它的SSH隧道來暴露我的開發站點。我在SSH隧道上遇到了很多麻煩。我確信port 4007已經打開,我的SSH配置同時包含GatewayPorts yes和GatewayPorts clientspecified。Facebooker SSH隧道

我可以從我的瀏覽器連接到我的域上的隧道確定,但是當我嘗試從我的Facebook應用程序它只是超時。

如果我檢查調試信息當我在瀏覽器中加載的域名我看到:

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 

當我從Facebook連接我只是得到:

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 

我是相當新的這種開發方法(SSH Tunneling),有沒有人可以提供的建議?

回答

0

當你說「我可以從我的瀏覽器連接到我的域上的隧道確定」時,你究竟是什麼意思?

讓我們在互聯網GATEWAY和您的開發機器上運行您的rails服務器DEV時,讓您的機器可見。 如果你把http://GATEWAY:4007你的紅寶石服務器上的DEV會看到請求?

如果是這種情況,你可能會有一個DNS問題,其中Facebook沒有解決你輸入的域名。嘗試在Facebook上的GATEWAY IP作爲畫布網址。你是否也證實你的GATEWAY可以被互聯網上的其他機器所擊中?