【问题标题】:Facebooker SSH TunnelFacebooker SSH 隧道
【发布时间】:2010-12-09 08:45:00
【问题描述】:

我正在为 Facebook 尝试使用 Facebooker 及其 SSH 隧道来公开我的开发站点的开发环境的一些初始设置。我在使用 SSH 隧道时遇到了很多麻烦。我已确保端口 4007 已打开,并且我的 SSH 配置包含 GatewayPorts yes 和 GatewayPorts clientspecified。

我可以从我的浏览器连接到我的域上的隧道,但是当我从我的 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 隧道)相当陌生,有没有人可以提供任何建议?

【问题讨论】:

    标签: ruby-on-rails facebook ssh facebooker


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-31
      • 1970-01-01
      • 1970-01-01
      • 2019-08-07
      • 2020-05-20
      • 2021-07-18
      • 2016-08-26
      • 2019-06-04
      相关资源
      最近更新 更多