Differences

This shows you the differences between the selected revisions of the page.

guide_microsoft_azure 2020-12-23 guide_microsoft_azure 2026-06-02 (current)
Line 1: Line 1:
-====== Connecting securely to Microsoft Azure Service with SFTP or FTPS ======+====== Connecting securely to Microsoft Azure service with SFTP or FTPS ======
With WinSCP you can easily upload and manage files on your Microsoft Azure instance/service over [[sftp|SFTP protocol]] or [[ftps|FTPS]] protocol. With WinSCP you can easily upload and manage files on your Microsoft Azure instance/service over [[sftp|SFTP protocol]] or [[ftps|FTPS]] protocol.
Line 10: Line 10:
First, collect information about your virtual machine instance, on the [[https://portal.azure.com/|Azure portal]]: First, collect information about your virtual machine instance, on the [[https://portal.azure.com/|Azure portal]]:
-  * Host name:+  * Hostname:
    * Use IP address you find in the //Public IP address// section on your virtual machine instance page;     * Use IP address you find in the //Public IP address// section on your virtual machine instance page;
    * Or setup a DNS name for the virtual machine by clicking on the //Configure// link in //%%DNS%% name// section. A //Configuration// panel opens. There, in the //%%DNS%% name label//, enter a sub domain for your virtual machine. Click //Save// button. A full hostname now appears in the //%%DNS%% name// section in a format ''subdomain.location.cloudapp.azure.com''.     * Or setup a DNS name for the virtual machine by clicking on the //Configure// link in //%%DNS%% name// section. A //Configuration// panel opens. There, in the //%%DNS%% name label//, enter a sub domain for your virtual machine. Click //Save// button. A full hostname now appears in the //%%DNS%% name// section in a format ''subdomain.location.cloudapp.azure.com''.
  * Username: Use the username, that you created, when creating the virtual machine.   * Username: Use the username, that you created, when creating the virtual machine.
  * Host key fingerprint: On the first connect you will be prompted to [[ssh_verifying_the_host_key|verify server host key]]. \\ To securely acquire a fingerprint of the host key:   * Host key fingerprint: On the first connect you will be prompted to [[ssh_verifying_the_host_key|verify server host key]]. \\ To securely acquire a fingerprint of the host key:
-    * On your virtual machine instance page, use [[https://docs.microsoft.com/en-us/azure/virtual-machines/linux/run-command|//Run command// function]]. You will find it in the virtual machine menu, in //Operations// group.+    * On your virtual machine instance page, use [[https://learn.microsoft.com/en-us/azure/virtual-machines/linux/run-command|//Run command// function]]. You will find it in the virtual machine menu, in //Operations// group.
    * Select //"RunShellScript"// command.     * Select //"RunShellScript"// command.
-    * Paste the following command: <code bash>for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f "$f"; done</code>+    * Paste the following command: <code bash>for f in /etc/<nohilite>ssh</nohilite>/ssh_host_*_key; do ssh-keygen -l -f "$f"; done</code>
    * You will get an output like: <code>256 SHA256:bKKCom8yh5gOuBNWaHHJ3rrnRXmCOAyPN/WximYEPAU /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)     * You will get an output like: <code>256 SHA256:bKKCom8yh5gOuBNWaHHJ3rrnRXmCOAyPN/WximYEPAU /etc/ssh/ssh_host_ecdsa_key.pub (ECDSA)
256 SHA256:IYeDl+gseYk46Acg4g2mcXGvCr7Z8FqOd+pCJz/KLHg /etc/ssh/ssh_host_ed25519_key.pub (ED25519) 256 SHA256:IYeDl+gseYk46Acg4g2mcXGvCr7Z8FqOd+pCJz/KLHg /etc/ssh/ssh_host_ed25519_key.pub (ED25519)
Line 27: Line 27:
  * Make sure //New site// node is selected.   * Make sure //New site// node is selected.
  * On the //New site// node, make sure //%%SFTP%%// protocol is selected.   * On the //New site// node, make sure //%%SFTP%%// protocol is selected.
-  * Enter //Host name//. +  * Enter //Hostname//. 
-  * Enter //User name//.+  * Enter //Username//.
  * Enter a password for the username. Or [[ui_login_authentication|specify a private key]], if you set up a public key authentication..   * Enter a password for the username. Or [[ui_login_authentication|specify a private key]], if you set up a public key authentication..
  * Save your site settings using the //Save// button.   * Save your site settings using the //Save// button.
Line 44: Line 44:
  * Make sure //New site// node is selected.   * Make sure //New site// node is selected.
  * On the //New site// node, select //FTP// protocol and //TLS/SSL Explicit encryption//.   * On the //New site// node, select //FTP// protocol and //TLS/SSL Explicit encryption//.
-  * In //Host name// box enter an address of your virtual machine:+  * In //Hostname// box enter an address of your virtual machine:
    * Use IP address you find in the //Public IP address// section on your virtual machine instance page on the [[https://portal.azure.com/|Azure portal]].     * Use IP address you find in the //Public IP address// section on your virtual machine instance page on the [[https://portal.azure.com/|Azure portal]].
    * Or setup a DNS name for the virtual machine by clicking on the //Configure// link in //%%DNS%% name// section. A //Configuration// panel opens. There, in the //%%DNS%% name label//, enter a sub domain for your virtual machine. Click //Save// button. A full hostname now appears in the //%%DNS%% name// section in a format ''subdomain.location.cloudapp.azure.com''.     * Or setup a DNS name for the virtual machine by clicking on the //Configure// link in //%%DNS%% name// section. A //Configuration// panel opens. There, in the //%%DNS%% name label//, enter a sub domain for your virtual machine. Click //Save// button. A full hostname now appears in the //%%DNS%% name// section in a format ''subdomain.location.cloudapp.azure.com''.
Line 58: Line 58:
First, collect information about your app service (previously web site), on the [[https://portal.azure.com/|Azure portal]]: First, collect information about your app service (previously web site), on the [[https://portal.azure.com/|Azure portal]]:
-  * Host name: Copy host name from //FTPS hostname// section on the //Overview// page. +  * Hostname: Copy hostname from //FTPS hostname// section on the //Overview// page. 
-  * User Name: Copy username from the //FTP/deployment username// section on the //Overview// page. If you did not set up an %%FTP%% account yet, goto //Deployment Center// page and select //FTP// in //Manual Deployment// section and switch to //User Credentials// tab. User name has a form ''name\user''. You need to use both parts when authenticating.+  * Username: Copy username from the //FTP/deployment username// section on the //Overview// page. If you did not set up an %%FTP%% account yet, goto //Deployment Center// page and select //FTP// in //Manual Deployment// section and switch to //User Credentials// tab. Username has a form ''name\user''. You need to use both parts when authenticating.
To connect to the web site with %%FTPS%%, start WinSCP. [[ui_login|Login dialog]] will appear. On the dialog: To connect to the web site with %%FTPS%%, start WinSCP. [[ui_login|Login dialog]] will appear. On the dialog:
Line 65: Line 65:
  * Make sure //New site// node is selected.   * Make sure //New site// node is selected.
  * On the //New site// node, select //FTP// protocol and //TLS/SSL Explicit encryption//.   * On the //New site// node, select //FTP// protocol and //TLS/SSL Explicit encryption//.
-  * In //Host name// box paste a host name of your instance in format ''%%waws-prod-xxx-xxx.ftp.azurewebsites.windows.net%%''. You can also paste a complete %%URL%% to select protocol, encryption and insert host name at once. +  * In //Hostname// box paste a hostname of your instance in format ''%%waws-prod-xxx-xxx.ftp.azurewebsites.windows.net%%''. You can also paste a complete %%URL%% to select protocol, encryption and insert hostname at once. 
-  * Enter the //User name// and the //Password//.+  * Enter the //Username// and the //Password//.
  * Save your site settings using the //Save// button.   * Save your site settings using the //Save// button.
  * Login using the //Login// button.   * Login using the //Login// button.

Last modified: by martin