notebookVb

This commit is contained in:
administrator
2026-05-24 06:55:47 +02:00
parent c0aa4fb684
commit d62b1a801c
12 changed files with 655 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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()