3

我正在开发一个提供 FTPS 和 SFTP 服务的模块。

为了验证我的服务是否正常工作,我需要提供 FTPS 和/或 SFTP 请求的在线服务器。

有没有这样好的服务。

谢谢,维杰博尔

4

2 回答 2

1

安装你自己的。

对于 FTP/FTPS,您可以使用FileZilla 服务器

对于 SFTP,请参阅Windows Server 2012 R2 是否原生支持 IIS SFTP?.

于 2013-05-15T08:05:59.577 回答
0

有一次我遇到了类似的问题,因此编写了一个 JUnit 4 规则,在您的测试期间运行 SFTP 服务器。它被称为假 SFTP 服务器规则。以下是使用该规则的测试示例:

public class SomeTest {
    @Rule
    public final FakeSftpServerRule sftpServer = new FakeSftpServerRule();

    @Test
    public void testTextFile() {
        //code that uploads the file

        String fileContent = sftpServer.getFileContent("/directory/file.txt", UTF_8);

        //verify content
    }
}
于 2018-01-26T16:11:24.293 回答