リモートファイルが書き込み可能か、paramiko を使用していないかを確認しようとしています。私の現在のコードは
from paramiko.ssh_exception import SSHException, BadHostKeyException
import paramiko
import sys
from optparse import OptionParser
import os
stdin, stdout, stderr = self.__econnection.exec_command('bash');
stdin.write('if [ -w "%s" ];'%(temp_path))
stdin.write("then echo True;");
stdin.write("else echo False;");
stdin.write("fi;");
stdin.flush();
しかし、これらの行を実行するとすぐに、シェルが動かなくなり、シェルを閉じる必要があります。助けてください..