VM on Azure - Passive FTP Won't Work

后端 未结 3 1189
故里飘歌
故里飘歌 2021-01-14 11:58

I\'ve tried the suggestions on a number of sites (http://blogs.thesitedoctor.co.uk/tim/Trackback.aspx?guid=e81a4682-0851-490b-a3d2-adf254a701e7 and http://www.itq.nl/blogs/p

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-14 12:44

    Azure VM endpoint have a 4 minutes timeout. For a FTP that means if a passive datatransport took longer then 4minutes, the main connection (port 21) get a timeout because nothink is happens while avtive file transfer!

    Now you have two options:

    1. It is possible to set the timeout of VM endpoints up to 30 minutes.

    Powershell command to do this is:

    > Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -Name "MyEndpoint" -IdleTimeoutInMinutes 30 | Update-AzureVM

    More information here.

    2. Create ILIP (instance level IP)

    You can create a ILIP to bypass the VM webservice enpoint layer. The PowerShell command to do this is:

    Get-AzureVM -ServiceName “MyService” -Name “MyVM” | Set-AzurePublicIP -PublicIPName "MyNewEndpoint" | Update-AzureVM

    More information here.

提交回复
热议问题