Paramiko: Piping blocks forever on read
问题 I have a problem with getting piping to work with paramiko. This works: ssh = paramiko.SSHClient() [...] stdin, stdout, stderr = ssh.exec_command("find /tmp") stdout.read() This does not work (blocks forever on stdout.read()): [...] stdin, stdout, stderr = ssh.exec_command("bash -") stdin.write("find /tmp\n") stdin.close() stdout.read() Any ideas? EDIT: I looked at the source code for paramiko, and ChannelFile.close does not really do anything in terms of communication. So I looked at the