推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
perryhau
V2EX  ›  Python

如何通过 python 连接需要 ssh 通道才能访问的 postgresql

  •  
  •   perryhau · Jun 17, 2015 · 3657 views
    This topic created in 3981 days ago, the information mentioned may be changed or developed.
    RT,正常通过pgadmin可以通过ssh连接到psql,在程序里尝试很多方式都失败,求解。
    2 replies    2015-06-17 20:43:11 +08:00
    clino
        1
    clino  
       Jun 17, 2015 via Android
    ssh -L 之类的端口映射到本地
    pc10201
        2
    pc10201  
       Jun 17, 2015
    @clino 楼上正解,通常是通过一个第三方程序桥接,而不是直接写在程序中
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3776 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    ♥ Do have faith in what you're doing.