Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to an Azure website via FTP using Azure login credentials

What login credentials do I use to connect to the FTP site that is listed on the dashboard of my Azure?

I tried using the same credentials I use to log into Azure, but this failed.

like image 338
Klaus Nji Avatar asked Mar 08 '14 18:03

Klaus Nji


People also ask

How do I enable FTP on Azure?

Log in to Microsoft Azure portal. Go to Virtual machines > click the name of the virtual machine for which you want to configure passive FTP > Networking (under “Settings”). Click the Add inbound port rule button.

What is required for FTP in Azure?

The following ports are required to be opened if you are using an NSG or firewall appliance: TCP 21 (FTP) TCP 990 (FTPS) TCP 50000 - 51000 (Passive Mode for data transfer)


2 Answers

In the current Azure portal the deployment credentials can be set by going to App Services → select the relevant app service item → in the Deployment section → Deployment CenterFTPDashboard. You can either chose to use the preprovided App Credentials or assign User Credentials.

In the previous generation Azure portal the deployment credentials can be set up by going to WEB APPS → select relevant item → DASHBOARDReset your deployment credentials.

Make sure you're specifying siteName\userName as your login name. The site name portion is required!

The default directory for the web content is \site\wwwroot which can be set as the initial directory for many FTP clients.

like image 66
Simon Opelt Avatar answered Sep 28 '22 03:09

Simon Opelt


If you want use the default value you need to download the publish profile in your dashboard for your site:

Enter image description here

[UPDATE for the new Azure UI]

Enter image description here

It will be an XML file. Open it and find your credentials. Sample:

  <publishProfile     profileName="nameofyoursite - FTP"     publishMethod="FTP"     publishUrl="ftp://waws-prod-blu-001.ftp.azurewebsites.windows.net/site/wwwroot"     ftpPassiveMode="True"     userName="nameofyoursite\$nameofyoursite"     userPWD="sOmeCrYPTicL00kIngStr1nG"     destinationAppUrl="http://nameofyoursite.azurewebsites.net"     SQLServerDBConnectionString=""     mySQLDBConnectionString=""     hostingProviderForumLink=""     controlPanelLink="http://windows.azure.com">     <databases/>   </publishProfile> 

Where your credentials:

publishUrl="ftp://waws-prod-blu-001.ftp.azurewebsites.windows.net/site/wwwroot"

userName="nameofyoursite$nameofyoursite"

userPWD="sOmeCrYPTicL00kIngStr1nG"

Source: Azure Web Sites FTP credentials



Connection from command line on OS X:

Console client:

ftp ftp://nameofyoursite:sOmeCrYPTicL00kIngStr1nG@waws-prod-blu-001.ftp.azurewebsites.windows.net/ 

Mount from the console:

mkdir /Users/<YOUR_USER>/FTP_AZURE mount_ftp nameofyoursite:sOmeCrYPTicL00kIngStr1nG@waws-prod-blu-001.ftp.azurewebsites.windows.net/ /Users/<YOUR_USER>/FTP_AZURE cd /Users/<YOUR_USER>/FTP_AZURE 

Open for editing in Vim:

vim ftp://[email protected]//site/wwwroot/ 

Note the user name here: nameofyoursite, not nameofyoursite$nameofyoursite

like image 31
0x8BADF00D Avatar answered Sep 28 '22 03:09

0x8BADF00D