【问题标题】:Is it possible to upload files to FTP server in Azure pipeline via VPN?是否可以通过 VPN 将文件上传到 Azure 管道中的 FTP 服务器?
【发布时间】:2021-11-03 12:10:36
【问题描述】:

我有一个 Azure 管道,用于构建我的应用并将其文件发布到配置为 FTP 服务器的计算机。

...

- task: FtpUpload@2
  inputs:
    credentialsOption: 'inputs'
    serverUrl: 'ftp://pathtomyftp'
    username: 'user'
    password: 'pass'
    rootDirectory: '$(Build.ArtifactStagingDirectory)'
    filePatterns: '**'
    remoteDirectory: '/PublishFiles/'
    clean: true
    preservePaths: true
    trustSSL: false

我不想将这些文件发布到我的 FTP 服务器,而是将这些文件发布到只能通过 VPN 访问的远程 FTP 服务器(如 OpenVPN 或/和 Global VPN 客户端)。这可以实现吗?

*我希望构建保留在 Azure 代理上,而不是我需要在我的机器上运行代理

【问题讨论】:

    标签: azure ftp azure-pipelines azure-vpn


    【解决方案1】:

    是否可以通过 VPN 将文件上传到 Azure 管道中的 FTP 服务器?

    恐怕无法通过 VPN 使用托管代理将文件上传到 Azure 管道中的 FTP 服务器。

    由于您使用的 microsoft 托管代理与 FTP 服务器所在的 VM 不在同一网络中,因此您应该确保可以从 外部 网络访问您的 ftp 服务器。

    因此,如果您需要使用 VPN 访问您的远程 FTP 服务器,您不能使用托管代理将文件上传到 Azure 管道中的 FTP 服务器。

    要解决此问题,您有两种可能的解决方案:

    1. 在您的 FTP 服务器计算机上使用代理。

    2. 配置您的 ftp 服务器,使其可以从外部网络而不是 VPN 访问。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-12
      • 1970-01-01
      • 2013-10-22
      • 1970-01-01
      • 1970-01-01
      • 2020-04-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多