{"id":3743,"date":"2023-11-21T14:22:25","date_gmt":"2023-11-21T06:22:25","guid":{"rendered":"https:\/\/www.servergigabit.com\/guide\/?post_type=kb&#038;p=3743"},"modified":"2026-03-16T12:06:56","modified_gmt":"2026-03-16T04:06:56","slug":"using-winscp-secure-file-transfers","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/using-winscp-secure-file-transfers","title":{"rendered":"Using WinSCP: 7 Essential Steps for Secure File Transfers"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-3744\" src=\"https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-300x169.jpeg\" alt=\" using WinSCP\" width=\"738\" height=\"416\" srcset=\"https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-300x169.jpeg 300w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-1024x576.jpeg 1024w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-768x432.jpeg 768w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-1536x864.jpeg 1536w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-2048x1152.jpeg 2048w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-370x208.jpeg 370w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-1230x692.jpeg 1230w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-800x450.jpeg 800w, https:\/\/www.servergigabit.com\/guide\/wp-content\/uploads\/2023\/11\/h-390x219.jpeg 390w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><\/p>\n<p data-sourcepos=\"7:1-7:193\">Using WinSCP is a free, open-source SFTP (SSH File Transfer Protocol), FTP (File Transfer Protocol), and WebDAV client for Windows. It allows users to securely transfer files between their local computer and a remote server.<\/p>\n<h2 data-sourcepos=\"9:1-9:37\"><strong>Downloading and Installing WinSCP<\/strong><\/h2>\n<ol data-sourcepos=\"11:1-12:0\">\n<li data-sourcepos=\"11:1-12:0\">Download WinSCP from the official website: <a href=\"https:\/\/winscp.net\/eng\/download.php#download2\" target=\"_blank\" rel=\"noopener\">https:\/\/winscp.net\/eng\/download.php#download2<\/a><\/li>\n<\/ol>\n<h4 data-sourcepos=\"9:1-9:28\"><strong>Choosing a File Protocol<\/strong><\/h4>\n<p data-sourcepos=\"11:1-11:77\">The choice of file protocol depends on your specific needs. Here is a summary of the advantages and disadvantages of each protocol:<\/p>\n<p data-sourcepos=\"13:3-13:39\"><strong>SFTP (SSH File Transfer Protocol)<\/strong><\/p>\n<ul data-sourcepos=\"15:5-17:0\">\n<li data-sourcepos=\"15:5-15:108\">Advantages: Encrypted connection established via the SSH port, eliminating the need for an FTP server.<\/li>\n<li data-sourcepos=\"16:5-17:0\">Disadvantages: Slower data transmission due to encryption.<\/li>\n<\/ul>\n<p data-sourcepos=\"18:3-18:34\"><strong>FTP (File Transfer Protocol)<\/strong><\/p>\n<ul data-sourcepos=\"20:5-22:0\">\n<li data-sourcepos=\"20:5-20:93\">Advantages: Faster data transmission compared to SFTP due to the absence of encryption.<\/li>\n<li data-sourcepos=\"21:5-22:0\">Disadvantages: Unencrypted connection requiring an FTP server installation.<\/li>\n<\/ul>\n<p data-sourcepos=\"23:3-23:23\"><strong>SCP (Secure Copy)<\/strong><\/p>\n<ul data-sourcepos=\"25:5-27:0\">\n<li data-sourcepos=\"25:5-25:69\">Advantages: Encrypted connection like SFTP, using the SSH port.<\/li>\n<li data-sourcepos=\"26:5-27:0\">Disadvantages: Slower data transmission due to encryption.<\/li>\n<\/ul>\n<p data-sourcepos=\"28:3-28:61\"><strong>WebDAV (Web-based Distributed Authoring and Versioning)<\/strong><\/p>\n<ul data-sourcepos=\"30:5-32:0\">\n<li data-sourcepos=\"30:5-30:105\">Advantages: Connection established over the HTTP port, which is typically not blocked by firewalls.<\/li>\n<li data-sourcepos=\"31:5-32:0\">Disadvantages: Unencrypted connection, but encryption can be achieved using SSL.<\/li>\n<\/ul>\n<h4 data-sourcepos=\"33:1-33:25\"><strong>Connection Parameters<\/strong><\/h4>\n<p data-sourcepos=\"35:3-35:105\"><strong>Host Name:<\/strong> Either the IP address of your server or the domain name corresponding to the IP address.<\/p>\n<p data-sourcepos=\"37:3-37:88\"><strong>Port Number:<\/strong> Depends on the chosen file protocol. Standard ports are listed below:<\/p>\n<ul data-sourcepos=\"39:5-43:0\">\n<li data-sourcepos=\"39:5-39:28\">Standard SFTP Port: 22<\/li>\n<li data-sourcepos=\"40:5-40:34\">Standard FTP Port: 20 and 21<\/li>\n<li data-sourcepos=\"41:5-41:27\">Standard SCP Port: 22<\/li>\n<li data-sourcepos=\"42:5-43:0\">Standard WebDAV Port: 80<\/li>\n<\/ul>\n<p data-sourcepos=\"44:5-44:143\"><strong>Note:<\/strong> SFTP and FTP use the default SSH port number 22. If this port has been changed, use the configured custom port number to connect.<\/p>\n<p data-sourcepos=\"46:3-46:89\"><strong>User Name:<\/strong> The user with permission to connect to your server. For example, &#8220;root&#8221;.<\/p>\n<p data-sourcepos=\"48:5-48:154\"><strong>Caution:<\/strong> The &#8220;root&#8221; user has full permissions on the server. Altering or deleting critical system data may render the operating system unbootable.<\/p>\n<h4 data-sourcepos=\"33:1-33:29\"><strong>Establishing a Connection<\/strong><\/h4>\n<p data-sourcepos=\"35:1-35:76\">To establish a connection with your server using WinSCP, follow these steps:<\/p>\n<ol data-sourcepos=\"37:1-42:0\">\n<li data-sourcepos=\"37:1-37:66\">Enter the host name (IP address or domain name) of your server.<br \/>\n<img decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2015\/11\/WinSCP1ENG-300x198.png\" alt=\"WinSCP1ENG\" \/><\/li>\n<li data-sourcepos=\"38:1-38:56\">Enter the port number for the selected file protocol.<\/li>\n<li data-sourcepos=\"39:1-39:86\">Enter the user name for the account that has permissions to connect to your server.<\/li>\n<li data-sourcepos=\"40:1-40:43\">Enter the password for the user account.<\/li>\n<li data-sourcepos=\"41:1-42:0\">Click the &#8220;Login&#8221; button.<br \/>\n<img decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2015\/11\/WinSCP2ENG-300x199.png\" alt=\"WinSCP2ENG\" \/><\/li>\n<li data-sourcepos=\"54:1-55:0\">\n<p data-sourcepos=\"54:4-54:31\">Accept the security warning.<br \/>\n<img decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2015\/11\/WinSCP3ENG-300x176.png\" alt=\"WinSCP3ENG\" \/><\/p>\n<\/li>\n<li data-sourcepos=\"56:1-57:0\">\n<p data-sourcepos=\"56:4-56:119\">Once the security warning is accepted, you will be successfully connected to your server via the SFTP file protocol.<br \/>\n<img decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2015\/11\/WinSCP4ENG-300x196.png\" alt=\"WinSCP4ENG\" \/><\/p>\n<\/li>\n<li data-sourcepos=\"58:1-59:0\">\n<p data-sourcepos=\"58:4-58:132\">The left-hand side of the window displays your local computer, while the right-hand side displays your remotely connected server.<\/p>\n<\/li>\n<\/ol>\n<h4 data-sourcepos=\"43:1-43:22\"><strong>Transferring Files<\/strong><\/h4>\n<p>To transfer a single file or a folder, simply drag and drop it from your local computer (left-hand side) to your server (right-hand side). This copies the file to the server, making it available on both the local computer and the remote server.<br \/>\n<img decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2015\/11\/WinSCP7ENG-300x195.png\" alt=\"WinSCP7ENG\" \/><\/p>\n<h4 data-sourcepos=\"47:1-47:30\"><strong>Connecting with an SSH Key<\/strong><\/h4>\n<p data-sourcepos=\"49:1-49:75\">If you want to connect to your server using an SSH key, follow these steps:<\/p>\n<ol data-sourcepos=\"51:1-55:0\">\n<li data-sourcepos=\"51:1-51:34\">Click the &#8220;Advanced&#8230;&#8221; button.<br \/>\n<img decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2015\/11\/WinSCP6ENG-300x244.png\" alt=\"WinSCP6ENG\" \/><\/li>\n<li data-sourcepos=\"52:1-52:41\">Go to the &#8220;Authentication&#8221; menu point.<\/li>\n<li data-sourcepos=\"53:1-53:33\">Specify your private key file.<\/li>\n<li class=\"animating\" data-sourcepos=\"54:1-55:0\"><span class=\"animating\">Click the &#8220;OK&#8221; button.<\/span><\/li>\n<\/ol>\n<h4 data-sourcepos=\"56:1-56:26\"><strong class=\"animating\">Closing the Connection<\/strong><\/h4>\n<p data-sourcepos=\"58:1-58:71\"><span class=\"animating\">To close the connection to your server,<\/span><span class=\"animating\"> click the &#8220;Close&#8221; button in the WinSCP window.<\/span><\/p>\n<h4 data-sourcepos=\"13:1-13:36\"><strong style=\"font-size: 3.2143rem; letter-spacing: -0.3px;\">Conclusion<\/strong><\/h4>\n<p data-sourcepos=\"72:1-72:164\">WinSCP is a powerful and versatile tool for transferring data between computers. It supports multiple file protocols, is easy to use, and offers secure connections.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using WinSCP is a free, open-source SFTP (SSH File Transfer Protocol), FTP (File Transfer Protocol), and WebDAV client for Windows. It allows users to securely transfer files between their local computer and a remote server. Downloading and Installing WinSCP Download WinSCP from the official website: https:\/\/winscp.net\/eng\/download.php#download2 Choosing a File Protocol The choice of file protocol depends on your specific needs.&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[1099],"kbtag":[1184],"class_list":["post-3743","kb","type-kb","status-publish","hentry","kbtopic-tutorials","kbtag-winscp"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=3743"}],"version-history":[{"count":6,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3743\/revisions"}],"predecessor-version":[{"id":6290,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3743\/revisions\/6290"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=3743"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=3743"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=3743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}