{"id":18223,"date":"2024-08-19T11:43:28","date_gmt":"2024-08-19T06:13:28","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=18223"},"modified":"2024-08-19T11:43:29","modified_gmt":"2024-08-19T06:13:29","slug":"what-is-ssh","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/","title":{"rendered":"What is the SSH File Transfer Protocol?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Understanding File Transfer Protocol (FTP)<\/h2>\n\n\n\n<p>FTP or file transfer protocol, refers to a process of transferring files between two or more devices over the internet.<\/p>\n\n\n\n<p>Protocols are of two types: secure and insecure.<\/p>\n\n\n\n<p>Secure protocols encrypt the transmission channel over which the files are being transferred, so even if someone retrieves the file in transit, they won\u2019t be able to read it. For example, SFTP, HTTPS, and FTPS.&nbsp;<\/p>\n\n\n\n<p>On the other hand, insecure protocols do not encrypt the communication channel. Which denotes that anyone can retrieve the files and read them. This is a critical issue, especially when the files being transferred contain sensitive data such as credit or debit card numbers, social security numbers, etc. For example, HTTP and FTP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Exactly is SFTP (SSH File Transfer Protocol)?<\/h2>\n\n\n\n<p>SFTP is an abbreviation for SSH file transfer protocol or secure file transfer protocol, which transfers one or more files over a secure shell (SSH) network.&nbsp;<\/p>\n\n\n\n<p>You need to know about 2 important factors regarding the SFTP for secure and seamless file transfer:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The transmission channel should be encrypted before transferring any file(s).<\/li>\n\n\n\n<li>You won\u2019t be able to send files using SFTP without any encryption.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">SFTP: How Does It Work?<\/h2>\n\n\n\n<p>Before transferring the file(s) over SFTP, the client and server validate their connection with a 3-way handshake and then validate each other\u2019s identities. In the end, the file gets transferred over the secure transmission channel in the form of packets. Each packet contains data to be transferred. The packets are reassembled once they reach the receiving end.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&#8211; What Does SFTP Use: TCP or UDP?\u00a0<\/h3>\n\n\n\n<p>Starting with the basics, the SFTP protocol makes use of TCP (Transmission Control Protocol) and not the UDP (User Datagram Protocol). It is because:<\/p>\n\n\n\n<p>Before transferring the data, the sender and receiver devices need to validate whether the destination device is prepared to receive the files. A transmission control protocol (TCP) is a connection-based protocol, using which both devices validate a connection between them before sending the data with a three-way handshake.<\/p>\n\n\n\n<p><strong>The steps in a three-way handshake include:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A sender device sends a synchronize message known as a SYN.<\/li>\n\n\n\n<li>A receiver device sends back a synchronize-acknowledge message known as SYN-ACK.<\/li>\n\n\n\n<li>A sender computer sends an acknowledgment (ACK) received message to the receiver.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>After the handshake phase, data is transferred. If the file doesn\u2019t reach the receiving end, then the TCP protocol ensures that the file is resent.<\/p>\n\n\n\n<p>Contrary to TCP, the UDP protocol is a connectionless protocol, which means none of the two computers acknowledge each other before transferring the files. Also, when using UDP, the destination device might receive a disorganized file or fragments. Thus,&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SFTP Leverages SSH and This Is How It Works:\u00a0<\/h2>\n\n\n\n<p>The three steps for establishing an SSH connection include:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The client ensures the server\u2019s authenticity.<\/li>\n\n\n\n<li>A session key is jointly created by the client and server.<\/li>\n\n\n\n<li>The client\u2019s identity is confirmed by the server.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step-1: The client ensures the server\u2019s authenticity<\/h3>\n\n\n\n<p>An SSH server constantly awaits client requests at <a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/secure-file-transfer-protocol-port-number\/\">SFTP port number<\/a> 22. When a client begins a connection process, it starts by checking the server\u2019s authenticity. There are two potential outcomes:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It could be the first time the client is accessing the server; therefore, the user needs to manually authenticate the server\u2019s public key.<\/li>\n\n\n\n<li>It could be that the client isn\u2019t accessing the server for the first time; therefore, the server\u2019s identity was already recorded and can be validated without the user&#8217;s intervention.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step-2: A session key is jointly generated by the client and server<\/h3>\n\n\n\n<p>A session key is jointly agreed upon by the client and server, which helps in encrypting and decrypting the data. This key is known as the \u201cSymmetric\u201d key, as it is crucial for data encryption and decryption and it is generated randomly.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step-3: The client\u2019s authenticity is confirmed by the server<\/h3>\n\n\n\n<p>With the help of an SSH key pair, the server verifies the client. This key pair consists of a public key, which is exclusively known to the authorized client. To validate that the client holds the accurate private key, the server utilizes any number next to the shared session key.<\/p>\n\n\n\n<p>After this, it derives the MD5 hash based on this value. Here, MD5 is a hashing technique that generates a distinct and constant-length string. You can imagine it as a consistent code that always produces a similar output for a similar value. When the client\u2019s MD5 hash aligns with the server\u2019s, it validates the client\u2019s private key, completing SSH authentication.<\/p>\n\n\n\n<p><strong>Related: <a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/sftp-vs-ssh\/\">Secure File Transfer Protocol (SFTP) vs SSH: Unheard Differences [2024]<\/a><\/strong><\/p>\n\n\n\n<div class=\"vlt-box \">\n<div class=\"box-title\" style=\"background:#D5EAFF; color:#000\">To Sum Up<\/div>\n<div class=\"box-content\" >\n<p>SSH file transfer protocol (SFTP) mixes the benefits of FTP with the safety of SSH, making it the most preferred option for secure file transfer in today\u2019s technological landscape.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Understanding File Transfer Protocol (FTP) FTP or file transfer protocol, refers to a process of transferring files between two or more devices over the internet. Protocols are of two types: secure and insecure. Secure protocols encrypt the transmission channel over which the files are being transferred, so even if someone retrieves the file in transit, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[963],"tags":[],"class_list":["post-18223","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-ftp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is the SSH File Transfer Protocol?<\/title>\n<meta name=\"description\" content=\"Want to understand what the SSH file transfer protocol is? Get to know everything about the SSH file transfer protocol (SFTP) and how it works.\" \/>\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.milesweb.in\/hosting-faqs\/what-is-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the SSH File Transfer Protocol?\" \/>\n<meta property=\"og:description\" content=\"Want to understand what the SSH file transfer protocol is? Get to know everything about the SSH file transfer protocol (SFTP) and how it works.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-19T06:13:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-19T06:13:29+00:00\" \/>\n<meta name=\"author\" content=\"Ujwala\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ujwala\" \/>\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\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/\"},\"author\":{\"name\":\"Ujwala\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\"},\"headline\":\"What is the SSH File Transfer Protocol?\",\"datePublished\":\"2024-08-19T06:13:28+00:00\",\"dateModified\":\"2024-08-19T06:13:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/\"},\"wordCount\":822,\"commentCount\":0,\"articleSection\":[\"FTP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/\",\"name\":\"What is the SSH File Transfer Protocol?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2024-08-19T06:13:28+00:00\",\"dateModified\":\"2024-08-19T06:13:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\"},\"description\":\"Want to understand what the SSH file transfer protocol is? Get to know everything about the SSH file transfer protocol (SFTP) and how it works.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is the SSH File Transfer Protocol?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\",\"name\":\"Ujwala\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3688a73ea9910afb426b453e227deb5300ca470f5518aac6c3b676a5b0acfee5?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3688a73ea9910afb426b453e227deb5300ca470f5518aac6c3b676a5b0acfee5?s=96&d=blank&r=g\",\"caption\":\"Ujwala\"},\"description\":\"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/ujwala\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the SSH File Transfer Protocol?","description":"Want to understand what the SSH file transfer protocol is? Get to know everything about the SSH file transfer protocol (SFTP) and how it works.","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.milesweb.in\/hosting-faqs\/what-is-ssh\/","og_locale":"en_US","og_type":"article","og_title":"What is the SSH File Transfer Protocol?","og_description":"Want to understand what the SSH file transfer protocol is? Get to know everything about the SSH file transfer protocol (SFTP) and how it works.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2024-08-19T06:13:28+00:00","article_modified_time":"2024-08-19T06:13:29+00:00","author":"Ujwala","twitter_misc":{"Written by":"Ujwala","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/"},"author":{"name":"Ujwala","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8"},"headline":"What is the SSH File Transfer Protocol?","datePublished":"2024-08-19T06:13:28+00:00","dateModified":"2024-08-19T06:13:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/"},"wordCount":822,"commentCount":0,"articleSection":["FTP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/","name":"What is the SSH File Transfer Protocol?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2024-08-19T06:13:28+00:00","dateModified":"2024-08-19T06:13:29+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8"},"description":"Want to understand what the SSH file transfer protocol is? Get to know everything about the SSH file transfer protocol (SFTP) and how it works.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/what-is-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"What is the SSH File Transfer Protocol?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8","name":"Ujwala","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3688a73ea9910afb426b453e227deb5300ca470f5518aac6c3b676a5b0acfee5?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3688a73ea9910afb426b453e227deb5300ca470f5518aac6c3b676a5b0acfee5?s=96&d=blank&r=g","caption":"Ujwala"},"description":"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/ujwala\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/18223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=18223"}],"version-history":[{"count":3,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/18223\/revisions"}],"predecessor-version":[{"id":18226,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/18223\/revisions\/18226"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=18223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=18223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=18223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}