So what is the difference between SSHClient.exec_command()
and send with SSHClient.invoke_shell
on Paramiko?
I can send and execute command with exec_command
to MikroTik router device but can't execute it with send
(invoke_shell()
).
On the other hand, I can send and execute command send
(invoke_shell()
) to Cisco device, but can't execute it with exec_command
.
The command I mean is the configuration command like routing (ip route xxx xxx) or make vlan or add an ip address and etc..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…