Configure FTP server on Windows Azure VM _powershell

Source: Internet
Author: User
Tags ftp login ftp site

1. Enable FTP Service
2. Create FTP Login User
3. Create an FTP site
4. Add Endpoints to Portal
5. Configure the firewall to allow communication on the increased endpoint port above
6. Restart the FTP service

1. Enable FTP Service

This should be simple, in the case of server R2 (this is the system for my Azure VM), open Server Manager, click Add Roles, select Components Web Server (IIS), and in role services, FTP On the server hook, click on the installation step by step down OK

2. Create FTP Login User

On the local machine to create a user login to FTP, My Computer-> admin-> Local Users and Groups-> user, click New User, enter username and password Click to create the line

3. Create an FTP site

Open IIS, right-click sites, select Add FTP Site, choose a physical path, such as C:ftpupload, port by default use 21, address is generally its own IP address. Identity authentication can choose basic, access rights according to their own needs to choose, have read and write.

Now you build the FTP service VM should be able to access the FTP site, in IE or Windows Explore input FTP <ip address> test.

4. Add Endpoints to Portal

The azure VM should know that underneath the virtual machine there is a endpoints tab, we can add some http,ftp below ..., port, as shown in the following figure

A. For active FTP you need to allow access to the FTP Command port and the (FTP data port) port, so you need to add these two ports to your Azure VM under endpoints: tcp/20,tcp/21.b. For passive FTP , we need to tell the FTP server can be used for data connection of the port range, the scope of the port is your own, such as I use 1035-1040, then we need in the IIS FTP firewall support inside the range of this port to add, And then add these ports to the endpoints of the Azure VM.

Open IIS Manager, select localhost site in Connections pane, double-click FTP Firewall Support, the following figure, enter the port range and IP address, note that the IP address here refers to the VIP of your VM Address is the IP address of the public network rather than the intranet IP address

VIP Address:

Adding Ports Range (1035-1040) inside the endpoints should be added. If there are too many ports, consider using Windows Azure Powershell to increase Windows Azure Powershell cmdlets

5. Configure the firewall to allow communication on the increased endpoint port above

Open windows Firewall with Advanced security, select New Rules,rule type selection under inbound Rules port,specific local ports Enter 1035-1040, Next down, all with the default configuration is good.

6. Restart the FTP service

net stop ftpsvcnet start ftpsvc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.