首页 > 解决方案 > Python - 不确定我是通过 FTP 还是 SFTP 连接到服务器

问题描述

urllib用来向服务器发出请求。

当 URL 具有 formatftp://ftp.piplatam.com//...时,它运行正常。

当 URL 具有 formatftp://sftp.piplatam.com//...时,它运行正常。

当 URL 具有 formatsftp://sftp.piplatam.com//...时,它会失败。错误:'<class urllib2.URLError>' and message '<urlopen error unknown url type: sftp>'

为什么会这样?另外,如果我以第二种方式运行请求,我使用的是 FTP 还是 SFTP?

标签: pythonftpsftpurllib2

解决方案


推荐阅读