import paramiko
client = paramiko.SSHClient()
client.load_system_host_keys()
client.connect('10.10.0.0', username='service', password='word')
_, stdout, _ = client.exec_command(
    '[ -f /opt/ad/bin/email_tidyup.sh ] && echo OK')
assert stdout.read()
Verify a file exists over ssh