folks,
I faced an issue unzipping files via SSH using Python Paramiko library.I download a .zip file using wget and try to unzip it with this command:
client = SSHClient()
client.set_missing_host_key_policy(AutoAddPolicy())
client.connect(hostname=host,port=port, username=user, password=psw)
stdin,stdout,stderr = client.exec_command('unzip /path/to/file.zip', get_pty=True)
for line in iter(stdout.readline, ""):
print(line, end="")
it finds a file tries to unzip it and hangs..
Archive: /path/to/file.zip
Could you help me?