Firefox 不再通过 ssh -D 隧道工作

Posted

技术标签:

【中文标题】Firefox 不再通过 ssh -D 隧道工作【英文标题】:Firefox no longer works through ssh -D tunnel 【发布时间】:2021-11-30 06:20:25 【问题描述】:

不久前,我开始使用 ssh 隧道,这样我就可以在英国访问需要英国客户地址的服务(例如我的图书馆和我的医生)。

所以我一直在使用“ssh -fTnN -D 1080 chris@isbd.uk”并在 Firefox 中设置代理配置以使用主机 127.0.0.1 和端口 1080。

但是当我上周在法国时这不起作用,我不确定它什么时候停止工作(可能在去年左右),现在它给出了一个错误:-

Secure Connection Failed

The connection to the server was reset while the page was loading.

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the web site owners to inform them of this problem.

有人知道如何解决这个问题吗?该代理适用于 curl 和 lynx 之类的东西,因此这似乎是安全偏执带来的 Firefox 问题。

【问题讨论】:

【参考方案1】:

发现这个是因为我今天遇到了同样的问题——同样的错误消息,没有有用的信息——在 fedora-34 上使用 Firefox 94.0 和 OpenSSH_8.6p1。还尝试了 GNU Icecat 78.15.0esr 相同的结果。无法测试cromium-browser,因为系统代理设置需要网络管理器,curl--preproxy sockst5://127.0.0.2:3128 可以正常工作。

认为我的服务器配置已损坏,但它也适用于所有其他连接,而浏览器设置为使用代理,并且我在其他设置中工作的系统,其中一个 ff 版本介于我在 fedora-33 上测试的两个版本之间另一个是 Arch 上的 94.0.1-1 版本。

目前我愿意花时间调试它

【讨论】:

以上是关于Firefox 不再通过 ssh -D 隧道工作的主要内容,如果未能解决你的问题,请参考以下文章

通过 ssh 迁移工作台 - 如何设置隧道

scp 通过 ssh 隧道打开

通过ssh隧道连接到MySQL到localhost

反向ssh隧道

ssh隧道理解

如何在MacOS上创建ssh隧道? [关闭]