```
client = paramiko.SSHClient()
stdin, stdout, stderr = client.exec_command(command)

```

Is there any way to get the command return code?

It's hard to parse all stdout/stderr and know whether the command finished successfully or not.