I have some Paramiko code where I use the invoke_shell method to request an interactive ssh shell session on a remote server. Method is outlined here: invoke_shell()
You can try disabling echo after invoking the remote shell:
channel.invoke_shell() channel.send("stty -echo\n") while True: command = raw_input() # no need for `$ ' anymore ... ...