librelist archives

« back to archive

tunneling with paramiko

tunneling with paramiko

From:
St
Date:
2015-03-11 @ 20:53
Hi,
I want to make a backup using duplicity (which uses paramiko) and upload
files to a remote host R2, the problem is, that I can access R2(sftp
access) only from R1(ssh access). How can I tunnel duplicity through R1
to R2? I defined (in .ssh/config) Host R2 and ProxyCommand ssh -p XXXX
-qW %h:%p user@R1 and I can actually do `sftp user@R2` but when I run
`duplicity Dir sftp://user@R2/` there is a delay and I get
"BackendException: ssh connection to R2:22 failed: timed out". Is there
a way to tell paramiko to use my .ssh/config? or is there a way to
tunnel throuch another host in paramiko?

Thank you.
Simone