FTP를 통해 Azure 웹 사이트에 연결
내 Azure의 대시 보드에 나열된 FTP 사이트에 연결하는 데 사용하는 로그인 자격 증명은 무엇입니까? Azure에 로그인하는 데 사용하는 것과 동일한 자격 증명을 사용해 보았지만 실패합니다. TIA.
에서 현재 푸른 포털 배포 자격 증명으로 이동하여 설정할 수 있습니다 응용 프로그램 서비스 / 관련 응용 서비스 항목을 선택 / 배포 섹션에서 / 배포 센터 / FTP / 대시 보드 . 사전 제공된 앱 자격 증명 을 사용 하거나 사용자 자격 증명을 할당 하도록 선택할 수 있습니다 .
에서 푸른 포털 이전 세대 배포 자격 증명으로 이동하여 설정할 수 있습니다 WEB APPS / 관련 항목을 선택 / 대시 보드 / 배포 자격 증명을 재설정합니다 .
로그인 이름으로 siteName \ userName 을 지정했는지 확인하십시오 . 사이트 이름 부분이 필요합니다!
웹 컨텐츠의 기본 디렉토리는 \ site \ wwwroot 이며 많은 FTP 클라이언트의 초기 디렉토리로 설정할 수 있습니다.
기본값을 사용하려면 사이트의 대시 보드에서 게시 프로필을 다운로드해야합니다.
[새 Azure UI 업데이트]
xml 파일이됩니다. 그것을 열고 자격 증명을 찾으십시오. 견본:
<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>
자격 증명 :
publishUrl = "ftp : // waws-prod-blu-001.ftp.azurewebsites.windows.net / site / wwwroot"
userName = " nameofyoursite \ $ nameofyoursite "
userPWD = " sOmeCrYPTicL00kIngStr1nG "
OS X의 명령 줄에서 연결 :
콘솔 클라이언트 :
ftp ftp://nameofyoursite:sOmeCrYPTicL00kIngStr1nG@waws-prod-blu-001.ftp.azurewebsites.windows.net/
콘솔에서 마운트 :
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
VIM에서 편집 용으로 열기 :
vim ftp://nameofyoursite@waws-prod-blu-001.ftp.azurewebsites.windows.ne//site/wwwroot/
여기에 주 사용자 이름 : nameofyoursite 하지 nameofyoursite \ $ nameofyoursite
완료하려면 두 가지 다른 자격 증명을 사용하여 FTP를 사용할 수 있습니다.
1, 이미 @ 0x8BADF00D에 의해 언급되어 있으며, '게시 프로필'을 다운로드하면 각 사이트에 대해 자동으로 생성 된 자격 증명을 볼 수 있습니다 .
in short, if x=your website name
, then username=x\$x
and the password is a long system generated string
obviously, this is not meant for human user...at least I cannot easily remember a 20+ character random string...
2, there is a more user friendly way, you can set a username and password in azure portal
however "deployment user name" is directly tied to a Microsoft Account, it is the same for all your webapps. In order to use it to ftp into different webapps, you need to add a prefix.
Here, my username is "blabla", my website name is "test" ==> my FTP username is thus "test\blabla" (mind the backslash on windows) followed by the password I set on azure portal (no modification required)
here are the references from Azure:
why there are two credentials for FTP
how to login with the user friendly credential
In the Azure portal (end of 2018):
- Go to your app
- In the left pane, select Deployment Center
- In the middle pane, select FTP
- Click view dashboard, and there you have your ftps connection url, username and password.
You must enable FTP/S on your web app to actually be able to connect! This is done under Application Settings -> FTP Access in the Azure portal
These two blades give all the required information to connect via FTP.
App Service > Settings > Properties
App Service > Deployment > Deployment Center > Deployment Credentials
참고URL : https://stackoverflow.com/questions/22273360/connecting-to-azure-website-via-ftp
'IT story' 카테고리의 다른 글
MVC4 HTTP 오류 403.14-금지됨 (0) | 2020.09.08 |
---|---|
jQuery select2 선택 태그의 값을 얻습니까? (0) | 2020.09.08 |
GPS 수신기의 현재 상태를 어떻게 확인할 수 있습니까? (0) | 2020.09.08 |
CSS 테이블 td의 가운데 이미지 (0) | 2020.09.08 |
디렉토리 + 하위 디렉토리의 모든 파일 및 디렉토리 나열 (0) | 2020.09.08 |