Skip to content

Instantly share code, notes, and snippets.

@ovidiucs
ovidiucs / paramiko-proxy.py
Last active Jan 24, 2023
Paramiko Connect via proxy
View paramiko-proxy.py
#!/usr/bin/env python
#-*- coding:utf8 -*-
# sources
# 1. https://gist.github.com/tell-k/4943359#file-paramiko_proxycommand_sample-py-L11
# 2. https://github.com/paramiko/paramiko/pull/97
# info: http://bitprophet.org/blog/2012/11/05/gateway-solutions/
# local -> proxy-server -> dest-server
# ~/.ssh/config
#
# Host proxy-server