Using SSHConnection(use_scp=True) lead to an exception:
UnboundLocalError: local variable 'handle' referenced before assignment
This is cause by some (false) cyclic dependency between initialization of SSHTransferHandle and creation of the SCPClient. We can fix that by adding a level of indirection to tie together both objects.
Using SSHConnection(use_scp=True) lead to an exception:
This is cause by some (false) cyclic dependency between initialization of SSHTransferHandle and creation of the SCPClient. We can fix that by adding a level of indirection to tie together both objects.