a = raw_input("Select your project: ")
stdin, stdout, stderr = ssh.exec_command('cd test \n cd software \n cd {0} \n ls'.format(a))
softwares = stdout.readlines()
我得到了这个输出。但是,当我试图得到下面的行代码输出, stdin
此问题与Taking the input from auto-execute user login using ssh execute command有关,我尝试采用另一种方法解决当前问题。 由于paramiko循环永远在等待用户输入命令。我无法杀死,有任何进展或做任何事情。 stdin, stdout, stderr = self.connection.exec_command(command)
我看到这个职位上计算器sftp server implementaion with Python 我试图建立https://pypi.python.org/pypi/sftpserver蟒蛇SFTP服务器,但我似乎无法得到它的正常工作。 像上面的stackoverflow帖子,我想开发一种方法来连接ssh到交换机,我能够使用paramiko,但是然后我需要能够将文件/配置从交换机复制回窗口主机在哪