Posts by Danilo Marquiori • 33 points
1 post
-
2
votes1
answer373
viewsQ: Connect to a host via SSH and go to another with ssh - Python tunnel
The code below (main.py) provides access to a host through SSH and creates a tunnel for the IP to be accessed by 127.0.0.1: import paramiko from sshtunnel import SSHTunnelForwarder from paramiko…