paramiko – error with a large wget command
paramiko – error with a large wget command Question: this is my code: import paramiko import time host = "123.456.789" username = "myusername" password = "mypassword" client = paramiko.client.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(host, username=username, password=password) _stdin, _stdout,_stderr = client.exec_command("sudo -i") _stdin.write(password + ‘n’) _stdin, _stdout,_stderr = client.exec_command("sudo wget -O- ‘https://abc.com.gz’ | gunzip | dd of=/dev/sda", get_pty=True) _stdin.flush() …