-1
我使用Paramiko從python程序發出一些SSH命令。我使用的命令是:Paramiko不返回標準輸出
stdin, stdout, stderr = client.exec_command('ls')
print stdout
client.close()
但是我得到了相同的輸出 - 它看起來像一個不同的數據類型。任何人的想法?這絕對不是一個文件列表!
<paramiko.ChannelFile from <paramiko.Channel 0 (open) window=2097152 -> <paramiko.Transport at 0x801d6750L (cipher aes128-ctr, 128 bits) (active; 1 open channel(s))>>>
謝謝!