我在本地笔记本电脑中有如下 ssh 连接:
ssh -f -N -D 3232 USER@IP
现在telepot
使用 fromurllib3
我想将所有连接传递给这个 ssh 连接,因为Telegram
我办公室的服务器已被禁止。我读了这篇文章并按照它所说的去做。但是当我使用这个时:
proxy_url = 'http:localhost:3232
我收到此错误:
urllib3.exceptions.ProxyError: ('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f22968e5710>: Failed to establish a new connection: [Errno 111] Connection refused',))
我怎样才能连接到这个服务器?