How do I start a shell without terminal emulation in Python Paramiko?
问题 Is there a way to start a shell without terminal emulation in Python Paramiko? I have tried using exec_command but I really need an interactive shell. Using invoke_shell() I get a terminal and can issue commands, but from Windows 10 OpenSSH server I get an output with ANSI escape sequences, including H code, which is not easy to process to plain text. Refer to Decoding data from WIN10 ssh server (response of paramiko recv()). 回答1: Paramiko SSHClient.invoke_shell opens "shell" SSH channel.