0
当我SFTP发布到服务器使用此命令在Linux操作系统Ubuntu:子和调用SFTP命令
sftp -b /path/sftp_put [email protected]
它的行为正确,但在使用时调用我的Python项目,如:
call(["sftp", "-b","/path/sftp_put",'[email protected]'])
它不工作,造成此错误:
Host key verification failed.
Couldn't read packet: Connection reset by peer
可能是它要求输入密码。 – 2014-10-11 13:45:10
为什么不使用像paramiko这样的python sftp客户端? – Daniel 2014-10-11 16:32:49