美文网首页Python小哥哥
python sshtunnel 简单介绍

python sshtunnel 简单介绍

作者: 我爱学python | 来源:发表于2019-05-02 16:31 被阅读0次

背景,公司的很多服务包括数据库访问都需要通过跳板机访问,为日常工作及使用带来了麻烦,特别数python直接操作数据更是麻烦了,所以一直想实现python 通过跳板机访问数据库的操作。

安装

pip3.6 install sshtunnel

使用 sshtunnel 跳转登录数据库

链接postgresql,其他数据类似

相关文章

网友评论

    本文标题:python sshtunnel 简单介绍

    本文链接:https://www.haomeiwen.com/subject/jyinnqtx.html