title: Python Paramiko send CTRL+C to an ssh shell
body: <p>I'm invoking a shell using Paramiko in order to use a CLI over an ssh connection. The problem with this CLI is if I do not close it specifically using CTRL+C, the program will not be able to be opened again without rebooting my system.</p>
  
  <p>I've tried the below commands:<br></p>
  
  <pre><code>SSH.send("^C\n")
  SSH.send("\x003")
  </code></pre>
  
  <p>is there another way to call these? Again, I've established an SSH connection using <code>paramiko.SSHClient()</code> and then invoked a shell using <code>ssh.invoke_shell()</code> and now i need to send CTRL+C to that shell to close the shell (not the ssh connection)</p>