import os
    cmd1 = "scp -oProxyJump=abc@testing.com foo.docx abc@test2:"

I was using

A$ scp -oProxyJump=B thefile C:destination

From https://superuser.com/questions/276533/scp-files-via-intermediate-host

But I'm getting error

channel 0: open failed: administratively prohibited: open failed stdio forwarding failed ssh_exchange_ident

Let me know if anyone can help me with it

marked as duplicate by Kusalananda linux Aug 13 at 5:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.