{"id":732,"date":"2014-01-30T13:51:59","date_gmt":"2014-01-30T18:51:59","guid":{"rendered":"http:\/\/www.gtcomm.net\/blog\/?p=732"},"modified":"2018-01-12T13:58:44","modified_gmt":"2018-01-12T18:58:44","slug":"difference-between-ftp-and-sftp","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/","title":{"rendered":"Difference Between FTP and SFTP"},"content":{"rendered":"<h1>Difference Between FTP and SFTP<\/h1>\n<p>When running a Windows or Linux server, it becomes necessary to implement a system for file transfers through a network. However, several protocols are available, and it is up to you to decide which is best for your particular server and situation. The oldest and most commonly used network protocol for uploading and downloading files is the file transfer protocol (FTP), but a newer protocol using advanced technology, Secure Shell File Transfer Protocol (SFTP) is becoming increasingly popular because of its security features. If you are having trouble choosing which protocol to use, the following guide may help you decide between FTP and SFTP.<\/p>\n<p style=\"text-align: center;\">\n<p><!--more--><\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-739\" alt=\"ftp protocole\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/ftp-protocole.png\" width=\"114\" height=\"114\" \/>FTP Overview<\/h2>\n<p>FTP is the earliest protocol for file transfers still in use today. It was first proposed to the Internet Engineering Task Force (IETF) in Request for Comments (RFC) 114 in April 1971, and it was fully developed into the protocol still used today in October 1985.<\/p>\n<p>FTP is a protocol used for exchanging data over private or public networks, such as local area networks (LANs) or the Internet. In order to accomplish the task, data is sent through two different channels: the command channel and the data channel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-740\" alt=\"passive-ftp-schema\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/passive-ftp-schema.gif\" width=\"428\" height=\"218\" \/><\/p>\n<p>In most instances, the command channel runs through server port 21, and its purpose is to establish client connections by handling simple commands from an FTP client and server. Examples of such commands include USER and PASS, which identify and authenticate particular FTP users. This channel remains open until the connection is closed manually with the QUIT command or by the server.<\/p>\n<p>The FTP data channel uses an on-demand system to listen to ports on the server in <a href=\"http:\/\/stackoverflow.com\/questions\/1699145\/what-is-the-difference-between-active-and-passive-ftp\" target=\"_blank\">passive mode or on the FTP client in active mode<\/a>. It is this channel that is responsible for the exchange of data. When a transfer is initiated, the channel opens, and it closes when the transfer is finished.<\/p>\n<p>Setting up FTP on a server is simple and can be accomplished with one of several FTP clients to make the process even easier. A few of the most popular clients that can be used with Windows and Linux servers are <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\">FileZilla, <a href=\"http:\/\/fireftp.net\" target=\"_blank\">FireFTP<\/a>, gFTP and NcFTP. Through the client, you can establish ports, protocols, users, remote access, connections, limits and other relevant settings. Commands can then be given through a GUI or command line.<\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-742\" alt=\"sftp logo\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp-logo.png\" width=\"189\" height=\"189\" \/>SFTP Overview<\/h2>\n<p>SFTP, not to be confused with FTPS, has become a popular alternative to FTP because it provides secure access to accounts that are on remote systems. Instead of using dual channels, SFTP uses SSH protocol to transfer commands and data in the form of uniquely formatted packets through a single connection. Port 22 is usually used by SFTP for both inbound and outbound connections.<\/p>\n<p>Although most of the FTP client (like <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\">Filezilla<\/a>) are able to establish a SFTP connection without requiring the server to have an SSH tunnel, here\u2019s how to set the tunnel up. Establishing an SSH tunnel is usually done through an SFTP client, such as PuTTY or OpenSSH. Tunneling allows for multiplex connections through forwarded TCP ports, and it can be used in much the same way as a virtual private network (VPN). To create an SSH tunnel through OpenSSH, you can use a command such as the following:<\/p>\n<p><code>ssh -2 -N -f -L 1234:localhost:25 user@example.example.com<\/code><\/p>\n<p>In the above command, the -2 forces the program to use SSH version 2, the \u2013N opens a tunnel with no command, -f indicates that SSH is to run in the background and \u2013L tells the system that it is a local tunnel in the format of localport:remotehost:remoteport.<\/p>\n<p>Establishing an SSH tunnel through PuTTY is very similar to doing so through OpenSSH. The following command format can be used:<\/p>\n<p><code>putty.exe server1 \u2013L 1234:server2:23<\/code><\/p>\n<p>Other commands can also be entered, such as -N and -f.<\/p>\n<h2>File Transfer Security<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-743\" alt=\"File transfer security\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/File-transfer-security.jpg\" width=\"260\" height=\"243\" \/>When it comes to security, FTP is very risky. While FTP can be set to require a password, the username and password are transmitted unencrypted through the command channel. Anyone intercepting this unencrypted transmission would be able to download sensitive data or upload malware to the server.<\/p>\n<p>SFTP, on the other hand, encrypts both the commands and the data that are transferred through the SSH channel via a cypher and encryption keys. Newer SFTP clients support 256-bit encryption, but many users will find 128-bit encryption sufficient.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Difference Between FTP and SFTP When running a Windows or Linux server, it becomes necessary to implement a system for file transfers through a network. However, several protocols are available, and it is up to you to decide which is best for your particular server and situation. The oldest and most commonly used network protocol<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":4,"featured_media":2271,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,11,5,13,8],"class_list":["post-732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dedicated-server","tag-high-availability-hosting","tag-infrastructure","tag-security","tag-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Difference Between FTP and SFTP - GloboTech Communications Blog<\/title>\n<meta name=\"description\" content=\"When running a server, it becomes necessary to implement a system for file transfers through a network. Learn the difference between FTP and SFTP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Difference Between FTP and SFTP - GloboTech Communications Blog\" \/>\n<meta property=\"og:description\" content=\"When running a server, it becomes necessary to implement a system for file transfers through a network. Learn the difference between FTP and SFTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-30T18:51:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-12T18:58:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Eric Simard\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eric Simard\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/\",\"name\":\"Difference Between FTP and SFTP - GloboTech Communications Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png\",\"datePublished\":\"2014-01-30T18:51:59+00:00\",\"dateModified\":\"2018-01-12T18:58:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1\"},\"description\":\"When running a server, it becomes necessary to implement a system for file transfers through a network. Learn the difference between FTP and SFTP.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#primaryimage\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png\",\"contentUrl\":\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png\",\"width\":500,\"height\":340,\"caption\":\"ftp vs sftp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Difference Between FTP and SFTP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1\",\"name\":\"Eric Simard\",\"description\":\"I am Eric Simard, best father in the world and account manager at GloboTech Communications located in the beautiful city of Montreal. Passionate about the hosting world and technologies, I take great pleasure in offering the best solutions for my clients. Follow me through my journey in the exciting hosting world on my different blogs!\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Difference Between FTP and SFTP - GloboTech Communications Blog","description":"When running a server, it becomes necessary to implement a system for file transfers through a network. Learn the difference between FTP and SFTP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/","og_locale":"en_US","og_type":"article","og_title":"Difference Between FTP and SFTP - GloboTech Communications Blog","og_description":"When running a server, it becomes necessary to implement a system for file transfers through a network. Learn the difference between FTP and SFTP.","og_url":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/","og_site_name":"Globo.Tech","article_published_time":"2014-01-30T18:51:59+00:00","article_modified_time":"2018-01-12T18:58:44+00:00","og_image":[{"width":500,"height":340,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png","type":"image\/png"}],"author":"Eric Simard","twitter_misc":{"Written by":"Eric Simard","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/","url":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/","name":"Difference Between FTP and SFTP - GloboTech Communications Blog","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png","datePublished":"2014-01-30T18:51:59+00:00","dateModified":"2018-01-12T18:58:44+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1"},"description":"When running a server, it becomes necessary to implement a system for file transfers through a network. Learn the difference between FTP and SFTP.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2014\/01\/sftp.png","width":500,"height":340,"caption":"ftp vs sftp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/difference-between-ftp-and-sftp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"Difference Between FTP and SFTP"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/2202ee355cd2897b4751d2f3ffcd56f1","name":"Eric Simard","description":"I am Eric Simard, best father in the world and account manager at GloboTech Communications located in the beautiful city of Montreal. Passionate about the hosting world and technologies, I take great pleasure in offering the best solutions for my clients. Follow me through my journey in the exciting hosting world on my different blogs!","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":19,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/732\/revisions"}],"predecessor-version":[{"id":4075,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/732\/revisions\/4075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media\/2271"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}