Execute (sub)commands in secondary shell/command on SSH server in Python Paramiko
问题 I'm having a problem with a ShoreTel voice switch, and I'm trying to use Paramiko to jump into it and run a couple commands. What I believe the problem might be, is that the ShoreTel CLI gives different prompts than the standard Linux $ . It would look like this: server1$:stcli Mitel>gotoshell CLI> (This is where I need to enter 'hapi_debug=1') Is Python still expecting that $ , or am I missing something else? I thought it might be a time thing, so I put those time.sleep(1) between commands.