Creating FTP server on Windows azure

Source: Internet
Author: User
Tags ftp connection ftp site visual studio 2010

 

Using the new windows azure 1.3 SDK and the RDP support, you can create your own ftp server in the cloud within less than 30 minutes! Here is a little guide how to do so:

The three major steps are to open the necessary FTP ports to the virtual server, enable RDP on the virtual server and configure the FTP server role on the virtual server.

  1. Download and install the Windows azure 1.3 SDK
  2. Create a new windows azure project in Visual Studio 2010 and add a role to that project. in fact it doesn' t matter what kind of role you add to the project. I started by adding a ASP. net web role.
  3. In the Solution Explorer, right click on the webrole and choose Properties
  4. In the endpoints tab on the properties page add a second endpoint that uses the public port 21 (which is the default port for FTP)
  5. Now right click on the cloud project in the Solution Explorer and choose publish +
  6. In the publishing dialog select the option "Deploy your windows azure project to Windows azure" and select the credentials, the deployment environment and the storage account you want to use for the deployment. Then
  7. Click on "configure remote desktop connections ..."
  8. Check the option "enable connections for all roles", select or create a certificate that will be used for the RDP connection and provide a user name and password. this user name and password will grant you administrative rights via Remote Desktop on
    Server.
    Close the dialog and publish your windows azure project to the cloud.
  9. After the publishing visit the Windows azure Management Portal, select the server instance of your windows azure project and click on the Remote Desktop connect button.
    You can either open the. RDP file directly or save it to your computer for later use without having to go to the Management Portal again.
  10. Login to the server with the user name and password you provided in step.
    Hint: use "\" to remove domain information for the login
    On the server you first need to remove the binding to port 21 from the IIS default website. go to: Start> Administrative Tools> Internet Information Services (IIS) manager, navigate to the only web site in the tree on the left and click on the "bindings ..."
    Link in the actions pane on the right.
  11. Remove the binding to port 21.
  12. Close the bindings window and close the IIS Manager
  13. Go to: Start> Administrative Tools> Server Manager
  14. Navigate to the Web Server (IIS) role in the tree on the left and click on "add role Services" in the right part of the window.
  15. Select the role service "FTP Publishing Service ". this shoshould select the Services "FTP server" and "FTP Management Console" automatically, too. if not, select all three manually. if necessary, add required role services pointed out by the wizard.
  16. Click "Next" and then "Install ".
  17. Go to: Start> Administrative Tools> Internet Information Services (IIS) 6.0 manager this tool is used to manage FTP on the server.
  18. Expand the tree on the left to the "Default FTP site", right click the default site and
  19. Start the FTP default site. When the IIS6 manager asks you if it shoshould start the FTP Publishing Service, click "yes ".
    To check if your FTP server is working, open a command shell (either on the server or on your local machine) and connect to your server. use the same credentials for the FTP connection as for the RDP login.
    You can find the address of your FTP server in the title bar of the RDP window.

Issues:

  • For using Passive FTP functionality you need to open up more FTP related ports.
  • When the cloud fabric decides to shut down your server, reboot it or move it to another physical machine, all changes you made via RDP are lost! You might solve this by creating startup scripts or upload a pre-configured server image.
  • When your server is restarted or moved all locally stored files are deleted, too. So you need to store the FTP uploads somewhere persistently.

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.