Differences

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

guide_microsoft_azure 2019-04-25 guide_microsoft_azure 2023-07-03 (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 15: Line 15:
  * 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)
-2048 SHA256:rA0lIXvHqFq7VHKQCqHwjsj28kw+tO0g/X4KnPpEjMk root@myazurevm (RSA)</code> The set of key types will vary with your virtual machine image. \\ (To get MD5 fingerprints for //older versions of WinSCP//, you need to add ''-E md5'' to the ''ssh-keygen'' command) &recent+2048 SHA256:rA0lIXvHqFq7VHKQCqHwjsj28kw+tO0g/X4KnPpEjMk root@myazurevm (RSA)</code> The set of key types will vary with your virtual machine image.
  * When creating new virtual machine, prefer setting up public key authentication by pasting your public key to //%%SSH%% public key// box in the //Basics// step in the //Administrator account// section. If you want to setup public key authentication later, you have to [[guide_public_key|set it up manually]].   * When creating new virtual machine, prefer setting up public key authentication by pasting your public key to //%%SSH%% public key// box in the //Basics// step in the //Administrator account// section. If you want to setup public key authentication later, you have to [[guide_public_key|set it up manually]].
Line 54: Line 54:
&screenshotpict(azure_windows) &screenshotpict(azure_windows)
-===== [[website]] Connecting to a Web Site with FTPS =====+===== [[appservice]] Connecting to an App Service (Web Site) with FTPS =====
-First, collect information about your 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 //Essentials// panel+  * Host name: Copy host name from //FTPS hostname// section on the //Overview// page
-  * User Name: Copy username from the //FTP/deployment username// section on the //Essentials// panel. If you did not set up an %%FTP%% account yet, use //Deployment credentials// page. User name has a form ''name\user''. You need to use both parts when authenticating.+  * 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.
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 73: Line 73:
&screenshotpict(azure_website) &screenshotpict(azure_website)
 +==== Automating Access to the App Service ====
- +See example for [[guide_microsoft_azure_webjob_sftp#deploying_auto|automating update of a WebJob on an App Service/Web Site]].
-==== Automating Access to the WebSite ==== +
- +
-See example for [[guide_microsoft_azure_webjob_sftp#deploying_auto|automating update of a WebJob on the WebSite]].+
===== Further reading ===== ===== Further reading =====

Last modified: by martin