<div dir="ltr"><div>i need to execute a shell script file through SSH twisted or paramiko. if it is a normal file then directly with the command&nbsp; sh &lt;filename&gt;.sh it is getting executed.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.conn.sendRequest(self, &#39;exec&#39;, common.NS(sh test1.sh), wantReply = 1)</div>

<div>but if a shell scripts asks for user input, this particular way does not wait for user input. it just print the echo part .</div>
<div>is there any way so that interactive type of scripts can be executed in Paramiko or Twisted Conch in a windows machine (remote login in a unix machine through Paramiko SSH or Twisted)</div>
<div>i did try with another way in Paramiko which helps in opening a remote window by creating an instance of SSHClient and invoking the method invoke_shell(with some parametes) but remote shell window is not opening.the method specifies starts a terminal shell window in SSH server. </div>

<div>To my interpretation it is somewaht opening a terminal window like putty.</div></div>