我在我的networking上有一个设备(“A”),它只通过HTTPS提供内容,不能在我的路由器/防火墙后访问。
我有另一台机器(“B”),在互联网上的其他地方(假IP 44.44.44.44)
我想要访问由B从A提供的内容。我在B上为B设置了accepted_keys。
–
我对SSL / TLS隧道有一个基本的了解,但是我从来没有用HTTPS把它复杂化。
所以我先从A – > B创build一个反向隧道:
ssh -N -R 8888:localhost:443 [email protected]
那么在这一点上,在B上,我应该能够访问端口8888,就好像它是A上的443一样?
当我尝试打B上的本地主机:8888时,我得到以下(来自链接2)
Bad request! Your browser (or proxy) sent a request that this server could not understand. If you think this is a server error, please contact the webmaster. Error 400 www.example.com Sat Mar 29 22:50:34 2014 Apache/2.2.26 (Unix) PHP/5.5.8 mod_ssl/2.2.26 OpenSSL/1.0.1f DAV/2
当我玩这个,我碰巧使用Apache,有一个function,我需要启用其configuration或其他我需要做的?
当你要求浏览器连接到localhost:8888它实际上默认使用http://localhost:8888/ ,由于它是一个SSL端口,在你的情况下不起作用。 使用URL https://localhost:8888/应该可以工作,除了证书警告。