Can I call Channel.invoke_shell() without calling Channel.get_pty() beforehand, when NOT using Channel.exec_command()
问题 I have read Paramiko docs multiple times. Still I am not able to find an answer for question I had: Why can't I call channel.invoke_shell() without calling channel.get_pty() beforehand? – Here is my understanding from the docs – it is not necessary to call channel.get_pty() if I want to use channel.exec_command() . But what if I would like to use an interactive shell with channel.send() or channel.recv() . Is it mandatory? Here is my try: client = paramiko.SSHClient() # Set SSH key parameters