import paramiko
from sshtunnel import SSHTunnelForwarder
import redis
host_jump = "x.x.x.x"
port_jump = 22
username = "username"
ssh_password = "ssh_password"
host_redis = "host_redis"
port_redis = 6379
password_redis = "password_redis"
使用SSHTunnelForwarder跳板机连接redis
最新推荐文章于 2023-11-20 12:53:08 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)