Connecting securely to Microsoft Azure service with SFTP or FTPS :: WinSCP (2024)

Documentation » Using WinSCP » Guides » Cloud Computing » Microsoft Azure »

With WinSCP you can easily upload and manage files on your Microsoft Azure instance/service over SFTP protocol or FTPS protocol.

  • Before Starting
  • Connecting to a Linux Virtual Machine with SFTP
  • Connecting to a Windows Virtual Machine with FTPS
  • Connecting to an App Service (Web Site) with FTPS
    • Automating Access to the App Service
  • Further reading

Advertisem*nt

Before Starting

Before starting you should have WinSCP installed.

Connecting to a Linux Virtual Machine with SFTP

First, collect information about your virtual machine instance, on the Azure portal:

  • Host name:
    • 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.
  • Username: Use the username, that you created, when creating the virtual machine.
  • Host key fingerprint: On the first connect you will be prompted to verify server host key.
    To securely acquire a fingerprint of the host key:
    • On your virtual machine instance page, use Run command function. You will find it in the virtual machine menu, in Operations group.
    • Select “RunShellScript” command.
    • Paste the following command:
      for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f "$f"; done
    • You will get an output like:
      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)2048 SHA256:rA0lIXvHqFq7VHKQCqHwjsj28kw+tO0g/X4KnPpEjMk root@myazurevm (RSA)
      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 set it up manually.

To connect to a virtual machine instance with SFTP, start WinSCP. Login dialog will appear. On the dialog:

  • Make sure New site node is selected.
  • On the New site node, make sure SFTP protocol is selected.
  • Enter Host name.
  • Enter User name.
  • Enter a password for the username. Or specify a private key, if you set up a public key authentication..
  • Save your site settings using the Save button.
  • Login using the Login button.
  • Verify the host key by comparing fingerprints with those collected before (see above).

Advertisem*nt

Connecting to a Windows Virtual Machine with FTPS

First you need to install a FTPS server on the virtual machine.

To connect to the virtual machine with FTPS, start WinSCP. Login dialog will appear. On the dialog:

  • Make sure New site node is selected.
  • On the New site node, select FTP protocol and TLS/SSL Explicit encryption.
  • In Host name 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 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.
  • Enter username and password of an account you want to connect with. Use the account you have specified when creating the instance or any other account you have created on the instance.
  • Save your site settings using the Save button.
  • Login using the Login button.
  • If you are using self-signed certificate, you will be prompted to accept it.

Advertisem*nt

Connecting to an App Service (Web Site) with FTPS

First, collect information about your app service (previously web site), on the Azure portal:

  • 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 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. Login dialog will appear. On the dialog:

  • Make sure New site node is selected.
  • 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.
  • Enter the User name and the Password.
  • Save your site settings using the Save button.
  • Login using the Login button.
  • Web site TLS/SSL certificate is signed by a trusted authority, so you won’t be prompted to verify it.

Automating Access to the App Service

See example for automating update of a WebJob on an App Service/Web Site.

Further reading

  • Guide to uploading files to SFTP/FTPS server;
  • Guide to automating operations (including upload);
  • Guide to connecting to Amazon EC2 server with SFTP;
  • Guide to connecting to Google Compute Engine server with SFTP.

Advertisem*nt

Last modified: by martin

Connecting securely to Microsoft Azure service with SFTP or FTPS :: WinSCP (2024)

FAQs

How to connect WinSCP to Azure? ›

To use WinSCP . NET assembly to implement an SFTP / FTP functionality in Microsoft Azure Function, just add WinSCP NuGet package to your Azure Functions project in Visual Studio and then use any standard WinSCP code.

What port does WinSCP use for SFTP? ›

Anyway, port 21 is used for FTP protocol (and FTPS with explicit TLS/SSL encryption). Port 22 is used for SSH/SFTP protocol. WinSCP automatically uses the correct port number, when you specify the respective protocol.

What is the difference between SFTP and FTPS? ›

SFTP builds on secure shell protocol (SSH) and adds on file transfer capabilities. FTPS builds on file transfer protocol (FTP) and adds on a security and encryption layer. It uses a single connection through only one port, making it easier to install firewall solutions.

What ports does FTPS use? ›

The standard port number for FTP and explicit FTPS is port 21. Port that is used for FTPS in implicit mode. The standard port number for implicit FTPS is port 990.

Does Azure file Share support SFTP? ›

You can access your data from Azure Blob Storage by using different protocols such as representational state transfer (REST), Hadoop Distributed File System (HDFS), Network File System (NFS), and Secure File Transfer Protocol (SFTP).

What is ftps in cyber security? ›

FTPS (File Transfer Protocol Secure) is an extension of the popular File Transfer Protocol that supports Transport Layer Security (TLS) and the new defunct Secure Sockets Layer (SSL).

How to connect WinSCP to Azure VM? ›

If you are trying to connect to your Linux VM via your on-premise machine via WinSCP, you will need to make sure that Port 21 is open, and that you are connecting via the Public IP. The Private IP is only accessible if you are on the same network, typically via a P2S or S2S VPN.

Does Azure support FTPs? ›

Fully managed service for the large enterprise. We offer a fully managed hosting service (SaaS) for FTP, FTPS and SFTP right from your own Azure Cloud account. Support for syncing files to Azure Storage, Amazon S3 and Google Cloud.

References

Top Articles
Depth of Market (DOM) With One-Click Trading | MultiCharts
How To Place Orders On TradingView - A Complete Guide
Chren, inaugural chair of the Department of Dermatology, to step down
Sugar And Spice 1976 Pdf
Bannerlord Campaign Or Sandbox
Osrs Tokkul Calculator
Provider Connect Milwaukee
Tiraj Rapid New York Midi
Pizza Hut Order Online Near Me
Chevrolet Colorado - Infos, Preise, Alternativen
Wlds Obits
Jacob Chapel Live Stream
Top Scorers Transfermarkt
Uwa Schedule
Grand Rapids Herald-Review Obituaries
Stepmom Full Video Hd
How to find cash from balance sheet?
73 87 Chevy Truck Air Conditioning Wiring Diagram
My Eschedule Greatpeople Me
The Eye Doctors North Topeka
360 Training Food Handlers Final Exam Answers 2022
Panic! At The Disco - Spotify Top Songs
Lewelling Garden Supply
Joy Ride 2023 Showtimes Near Cinemark Huber Heights 16
Fox News Live Stream USA HD - USNewsON
Age Gabriela Moura's Evolution from Childhood Dreams to TikTok Fame - Essential Tribune
Used Fuel Tanks For Sale Craigslist
Timon Meaning In Swahili
Hatcher Funeral Home Aiken Sc
Alex Galindo And Leslie Quezada Net Worth 2022
Kare11.Com Contests
William Sokol National Security Advisor Resigns
Planet Zoo Obstructed
Super Restore Vs Prayer Potion
Wwwcraigs List .Com
Family Naturist Contest
Adult Theather Near Me
Ftbt Ugly God Lyrics
Daftpo
Tires Shop Santoyo
This Eras Tour Detail Makes Us Wonder If Taylor & Karlie Still Have Bad Blood
Circuit Court Peoria Il
Part Of The Body With The Humerus And Radius Nyt
Hooda Math—Games, Features, and Benefits — Mashup Math
Sun Massage Tucson Reviews
Adda Darts
Smithfield Okta Login
Pastel Pink Facetime Icon
Schedule An Oil Change At Walmart
Craigslist West Valley
Sarah Colman-Livengood Park Raytown Photos
Youtube Verify On Payment Methods Page
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6020

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.