What is the difference between exec_command and send with invoke_shell() on Paramiko?
The difference is that invoke_shell uses SSH shell channel, while exec_command uses SSH exec channel. What that really means to you as a user/developer really depends on the SSH server, not on Paramiko itself. In common *nix OpenSSH server: The shell channel executes a login shell (as if you login with SSH terminal client). The … Read more