python libraries for ssh handling
Since you’re not doing anything special at the protocol level, you presumably don’t need the protocol to be entirely implemented in python, and you could simply run ssh/scp commands using the subprocess module. import subprocess subprocess.check_call([‘ssh’, ‘server’, ‘command’]) subprocess.check_call([‘scp’, ‘server:file’, ‘file’])