Since November 2012 and the release 1.9, the Paramiko API allows to use a proxy command when the ssh connection is created. For example: sock = paramiko.ProxyCommand(proxy_command) client.connect( hostname=host, port=port, username=username, password=password, sock=sock, ) where proxy_command contains a string with a