Skip to content Skip to sidebar Skip to footer

Execute (sub)commands In Secondary Shell/command On Ssh Server In Paramiko

My goal is to be able to SSH into a device, execute CLI command which will take me to another Shell where I can enter in my commands. Currently, I am able to successfully SSH into

Solution 1:

Write the commands that you want to execute in the subshell to the stdin:

stdin.write('command\n')
stdin.flush()

Post a Comment for "Execute (sub)commands In Secondary Shell/command On Ssh Server In Paramiko"