Paramiko: ssh.exec_command to collect output says open channel in response
I have python script with paramiko and ssh somewhat as below import paramiko # setup ssh connection this works. no problem. ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) conn = ssh.connect(MACHINEIP, username=ROOTUSER, password=ROOTUSER_PASSWORD, port=22) # This first ssh exec works perfect. (sshin1, sshout1, ssherr1) = ssh.exec_command(cmd1) # When I print the output of 2nd and 3rd ssh exec, I get output saying of channel open (sshin2, sshout2, ssherr2) = ssh.exec_command(cmd2) print sshout2 (sshin3, sshout3, ssherr3) = ssh.exec_command(cmd3) print