import paramiko

client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect("192.168.1.76", username="root", password="7309208104",
               look_for_keys=False, allow_agent=False)

def run(cmd):
    _, stdout, stderr = client.exec_command(cmd)
    out = stdout.read().decode().strip()
    if out: print(out)

run("mount | grep -i zaloha")
run("ls /mnt/remotes/ 2>/dev/null | grep -i zaloha")
run("ls /mnt/user/ 2>/dev/null | grep -i zaloha")

client.close()
