Python 如何在Paramiko SSH客户端上增加回滚缓冲区?

Python 如何在Paramiko SSH客户端上增加回滚缓冲区?,python,python-3.x,ssh,terminal,paramiko,Python,Python 3.x,Ssh,Terminal,Paramiko,我使用Paramiko通过ssh连接到服务器,并希望列出一个输出。但它只显示了一半的产出。在输出的末尾有一个--更多--。如何增加缓冲区以显示完整输出 以下是我脚本的一部分: SERVER_ssh = paramiko.SSHClient() SERVER_ssh.load_system_host_keys() SERVER_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: SERVER_ssh.connec

我使用Paramiko通过ssh连接到服务器,并希望列出一个输出。但它只显示了一半的产出。在输出的末尾有一个
--更多--
。如何增加缓冲区以显示完整输出

以下是我脚本的一部分:

SERVER_ssh = paramiko.SSHClient()
SERVER_ssh.load_system_host_keys()

SERVER_ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

try:
    SERVER_ssh.connect(hostname=SERVER_PLATFORM, port=SERVER_SSH_PORT, username=SERVER_ID, password=SERVER_PASSWORD)

except (AttributeError, TimeoutError) as err:
    SERVER_ssh.close()
    exit('Connection to SERVER fails')

with SSHClientInteraction(SERVER_ssh, timeout=20, display=True, buffer_size=8192) as interact:
    interact.send(command)
    time.sleep(2)
    interact.expect(r'(.+)')
    cmd_output_ssh = interact.current_output_clean

SERVER_ssh.close()

SSHClientInteraction
构造函数具有
tty\u height
参数,默认为24


(假设您使用)

您正在运行什么命令?