{"id":1017,"date":"2021-03-17T10:01:44","date_gmt":"2021-03-17T08:01:44","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1017"},"modified":"2023-03-14T14:15:33","modified_gmt":"2023-03-14T12:15:33","slug":"upload-files-with-sftp","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/upload-files-with-sftp\/","title":{"rendered":"Upload Files With SFTP"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">SFTP is a <\/span><b>network protocol<\/b><span style=\"font-weight: 400;\"> that accesses, transfers, and manages your data over a secure data stream. SFTP stands for SSH File Transfer Protocol, and unlike ordinary FTP technologies, connects your device to remote hosts and servers over a secure network.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">SSH, Secure Shell, or Secure Socket Shell, <\/span><b>creates a secure tunnel<\/b><span style=\"font-weight: 400;\"> for remote systems to communicate over an open network, like the internet. Utilities that implement SSH protocols provide a strong password and public key authentication and encrypted data access.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Thus, <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/how-to-connect-to-my-vps-via-sftp\/\"><b>data transferred over an SFTP<\/b><\/a><b> are encrypted<\/b><span style=\"font-weight: 400;\"> end-to-end and can\u2019t be redirected, sniffed, or stolen in transit.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Connecting to a remote server via SSH is only possible through the command-line interface. However, despite being based on SSH, SFTP is also supported by some graphic user interface clients.<br><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Common SFTP Use Cases<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">SSH File Transfer Protocol\u2019s primary use is <\/span><b>to manage data on a remote host<\/b><span style=\"font-weight: 400;\">, most likely a cloud hosting server, from a local computer and over the internet.<\/span><\/p>\n\n\n\n<p><b>So, you can:<\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>Transfer files across to remote systems.<\/b><span style=\"font-weight: 400;\">&nbsp; Create an SSH server on the remote machine, and you can access your data from other computers.<\/span><\/li>\n\n\n\n<li><b>Manage a network of remote computers.<\/b><span style=\"font-weight: 400;\"> Network admins use SFTP to connect across servers, manage multiple terminals in one network, perform uploads, and backup system data.<\/span><\/li>\n\n\n\n<li><b>Share sensitive sign-on information.<\/b><span style=\"font-weight: 400;\"> Share IDs and login passwords over SFTP instead of unsecured emails and FTP.<\/span><\/li>\n\n\n\n<li><b>Share, transfer or store client data over the cloud\/internet.<\/b><span style=\"font-weight: 400;\"> Don\u2019t store sensitive data in the DMZ or transfer using emails and FTP. Use SFTP to secure all your communication with the right permissions.<\/span><\/li>\n\n\n\n<li><b>Upload, retrieve, and manage files and scripts from local to cloud storage.<\/b><\/li>\n\n\n\n<li><b>Switch file remote hosting servers or Virtual Private Servers. <\/b><a href=\"https:\/\/www.scalahosting.com\/blog\/vps-vs-vpn-do-you-need-a-virtual-private-network-or-a-virtual-private-server\/\"><span style=\"font-weight: 400;\">Data storage on VPS<\/span><\/a><span style=\"font-weight: 400;\"> is arguably more secure than shared hosting. However, migrating to another provider over an open network would expose your files to possible data theft.<\/span><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How To Upload Files With SFTP On Windows<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">PuTTY is one of the world&#8217;s most popular SSH client applications, and by default, it comes with a module for establishing an SFTP connection. It&#8217;s called PSFTP, and Windows users can find it under the PuTTY folder in their Start menu.<br><\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"281\" height=\"266\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/291.png\" alt=\"Upload Files With SFTP, How To Upload Files With SFTP On Windows\" class=\"wp-image-3749\"\/><\/figure>\n<\/div>\n\n\n<p>If you&#8217;ve used PuTTY in the past, PSFTP will automatically try to connect to your server using your username. If not, you can establish a connection using the <strong><em>open<\/em><\/strong> command and the <em><strong>user@hostname<\/strong><\/em> convention.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Upload Files With SFTP Using PuTTY SFTP<\/b><\/h3>\n\n\n\n<p><b>Explore your storage directories<\/b><span style=\"font-weight: 400;\"> from your command window using the <\/span><span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-weight: 400;\">lcd<\/span><span style=\"font-weight: 400;\"> commands for remote and local directories, respectively. List the content of your current working directory using the <\/span><span style=\"font-weight: 400;\">dir<\/span><span style=\"font-weight: 400;\"> and <\/span><span style=\"font-weight: 400;\">!dir<\/span> <span style=\"font-weight: 400;\">commands for remote and local systems, respectively.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"599\" height=\"323\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_09h58_01.png\" alt=\"Upload Files With SFTP, Upload Files With SFTP Using PuTTY SFTP\" class=\"wp-image-1021\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_09h58_01.png 599w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_09h58_01-300x162.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><b>Upload files from your local machine to a remote server using the following steps:<\/b><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">Use the <\/span><span style=\"font-weight: 400;\">lcd<\/span><span style=\"font-weight: 400;\"> command to navigate to the right local directory.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Navigate to the remote directory to which you want to copy files using the <\/span><span style=\"font-weight: 400;\">cd<\/span><span style=\"font-weight: 400;\"> command.<\/span><\/li>\n\n\n\n<li><span style=\"font-weight: 400;\">Use <\/span><em><strong>put [file name]<\/strong><\/em><span style=\"font-weight: 400;\"> to upload the file to the remote server <\/span><\/li>\n<\/ol>\n\n\n\n<p><b>To download files<\/b><span style=\"font-weight: 400;\"> from a remote server to your local machine, use the <\/span><em><strong>get [file name]<\/strong><\/em><span style=\"font-weight: 400;\"> command after you navigate to the right local and remote directories.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Run the <\/span><span style=\"font-weight: 400;\">help<\/span><span style=\"font-weight: 400;\"> command to see other codes for navigating your local and remote systems.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"602\" height=\"290\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_09h58_12.png\" alt=\"Upload Files With SFTP, Upload Files With SFTP Using PuTTY SFTP 2\" class=\"wp-image-1022\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_09h58_12.png 602w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_09h58_12-300x145.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><b>Uploading Files With SFTP From Other Systems<\/b><\/h2>\n\n\n\n<p>Both MacOS and Linux can establish SFTP connections to a remote server without the need of additional clients. To do it, open the Terminal and enter:<\/p>\n\n\n\n<p><strong><em>$ sftp [username]@[hostname]<\/em><\/strong><\/p>\n\n\n\n<p>You&#8217;ll need to enter your account&#8217;s password, after which you will be able to manage your files using the standard ftp commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Uploading Files Using FileZilla<\/strong><\/h2>\n\n\n\n<p>If you&#8217;re not comfortable working with the command-line interface, you&#8217;ll most likely want to use a GUI-based client like FileZilla. Luckily for you, it&#8217;s completely free and open-source, and it&#8217;s available on Windows, Linux, and MacOS.<\/p>\n\n\n\n<p>Using SFTP with FileZilla is not much different to using it for the regular, less secure version of the File Transfer Protocol. The only hing you need to do is enter <em><strong>sftp:\/\/ <\/strong><\/em>in front of the hostname and put in the correct port (out of the box, SFTP uses the default SSH port (port22), but some providers change it for security reasons). Here, for example, what you need to enter if you&#8217;re trying to connect to a ScalaHosting <a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\">managed VPS<\/a> server.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"203\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/292-1024x203.png\" alt=\"Upload Files With SFTP, Uploading Files Using FileZilla\" class=\"wp-image-3757\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/292-1024x203.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/292-300x59.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/292-768x152.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/292.png 1040w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><b>Conclusion<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">The right SFTP client <\/span><b>will provide you a wider bandwidth<\/b><span style=\"font-weight: 400;\"> than regular FTP or SCP utilities, which means unlimited file size and greater efficiency.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Besides the added security, SFTP tools also allow <\/span><b>unlimited connections to a singular server<\/b><span style=\"font-weight: 400;\">, improving your business\u2019s scalability through simultaneous and instant data access.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If you\u2019d rather secure your data and protect your business, <\/span><b>ScalaHosting is<\/b> <b>the world&#8217;s #1 rated cloud and web hosting provider<\/b> <b>by Trustpilot.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SFTP is a network protocol that accesses, transfers, and manages your data over a secure data stream. SFTP stands for SSH File Transfer Protocol, and unlike ordinary FTP technologies, connects your device to remote hosts and servers over a secure network. SSH, Secure Shell, or Secure Socket Shell, creates a secure tunnel for remote systems [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-1017","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=1017"}],"version-history":[{"count":10,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1017\/revisions"}],"predecessor-version":[{"id":5472,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1017\/revisions\/5472"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}