SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the package subprocess and the command call to use the scp command from the shell.
from subprocess import call cmd = "scp user1@host1:files user2@host2:files" call(cmd.split(" "))