{"id":29077,"date":"2020-10-24T11:39:25","date_gmt":"2020-10-24T16:39:25","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=29077"},"modified":"2022-07-26T05:44:44","modified_gmt":"2022-07-26T10:44:44","slug":"how-to-download-a-file-from-a-server-to-your-desktop-using-ssh","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/","title":{"rendered":"How to Download a File From a Server to Your Desktop Using SSH"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" width=\"742\" height=\"372\" class=\"wp-image-34583\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg\" alt=\"download files ssh to desktop\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>An SSH session is like a portal into another machine. If you&#8217;re used to working with Windows, you&#8217;ll know how easy it is to transfer files from one location to another. Just drag and drop! No text commands, no authentication, none of that.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"alignright size-large\"><img decoding=\"async\" width=\"115\" height=\"115\" class=\"wp-image-38001\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/ssh-download-command.jpg\" alt=\"ssh download command\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>However, sometimes you will need to download a file from SSH to your local desktop, such as if you are using one of our <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/\">managed VPS hosting services<\/a>. And there&#8217;s no simple command from within the SSH terminal itself to do this. The two environments are too far apart. However, we have a dedicated tool called &#8220;SCP&#8221; which stands for &#8220;Secure Copy&#8221; that&#8217;s made for precisely these kinds of situations.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<p>Here&#8217;s how it works. First, we have a file on the remote server called <code>filetodownload.txt<\/code>, as shown here:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"700\" height=\"278\" class=\"wp-image-37125\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/download-file-from-server-to-desktop-using-ssh-1.jpg\" alt=\"download file from server to desktop using ssh\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/download-file-from-server-to-desktop-using-ssh-1.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/download-file-from-server-to-desktop-using-ssh-1-300x119.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/download-file-from-server-to-desktop-using-ssh-1-150x60.jpg 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>We&#8217;re going to transfer this file from Linux to our Windows desktop.<\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ea7d2d44fc7\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ea7d2d44fc7\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#Step-1-Gather-the-Necessary-Information\" >Step 1: Gather the Necessary Information<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#Step-2-Create-the-SCP-Command\" >Step 2: Create the SCP Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#Step-3-Running-the-Command\" >Step 3: Running the Command<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"h-step-1-gather-the-necessary-information\" class=\"western wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Gather-the-Necessary-Information\"><\/span>Step 1: Gather the Necessary Information<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>To transfer a file from a remote server via SSH using SCP, we need the following pieces of information:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>Login credentials &#8211; username, server name or IP address, and password<\/li>\r\n<li>The port number for SSH connections<\/li>\r\n<li>The path to the file on the remote server<\/li>\r\n<li>The path to the download location<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p>You should already have the login credentials when you connect to the server using PuTTY, or some other tool, so we won&#8217;t go into it here. Learn more about basic <a href=\"https:\/\/www.rosehosting.com\/blog\/basic-shell-commands-after-putty-ssh-logon\/\">PuTTY commands<\/a>.<\/p>\r\n\r\n\r\n\r\n<p>As for the port number, you&#8217;ll need to know which SSH server port your VPS listens to. It&#8217;ll either be 22 (the default port), or it&#8217;ll be given to you when you order your VPS from your hosting provider.<\/p>\r\n\r\n\r\n\r\n<p>To get the full path to the file you want to transfer, enter the &#8220;pwd&#8221; command on the CLI of the remote server while the file is in your current directory. This will give you the folder name, like this:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"700\" height=\"242\" class=\"wp-image-37126\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/how-to-download-files-from-server-to-desktop-with-ssh.jpg\" alt=\"how to download files from server to desktop with ssh\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/how-to-download-files-from-server-to-desktop-with-ssh.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/how-to-download-files-from-server-to-desktop-with-ssh-300x104.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/how-to-download-files-from-server-to-desktop-with-ssh-150x52.jpg 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Now just append the name of the file to the path you get and you&#8217;re done.<\/p>\r\n\r\n\r\n\r\n<p>As for the path to the download location, that&#8217;s something you have to get on your own!<\/p>\r\n\r\n\r\n\r\n<h2 id=\"h-step-2-create-the-scp-command\" class=\"western wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Create-the-SCP-Command\"><\/span>Step 2: Create the SCP Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>The SCP command looks like this:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">scp -P <b>[port number]<\/b> <b>[username]<\/b>@<b>[server name or IP<\/b>]:<b>[path to file on server]<\/b> <b>[path to file on local PC]<\/b><\/pre>\r\n\r\n\r\n\r\n<p>Replace the sections in <b>bold<\/b> with the information you gathered in step 1. For example, the command used for this example is:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">scp -P 7022 root@206.196.xxx.xxx:\/root\/filetodownload.txt C:\\Users\\[UserName]\\Desktop\\<\/pre>\r\n\r\n\r\n\r\n<h2 id=\"h-step-3-running-the-command\" class=\"western wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-3-Running-the-Command\"><\/span>Step 3: Running the Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Open up a command line in Windows. Windows 10 already has SCP installed by default. For this example, we&#8217;ll use the Windows PowerShell tool to run the commands. The color contrasts with the yellow, and syntax highlighting is a nice change from the drab command line.<\/p>\r\n\r\n\r\n\r\n<p>Pasting the above command into the local command line editor gives us:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"273\" class=\"wp-image-37127\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/transfer-file-from-a-server-to-desktop-using-ssh.jpg\" alt=\"transfer file from a server to desktop using ssh\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/transfer-file-from-a-server-to-desktop-using-ssh.jpg 800w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/transfer-file-from-a-server-to-desktop-using-ssh-300x102.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/transfer-file-from-a-server-to-desktop-using-ssh-150x51.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/transfer-file-from-a-server-to-desktop-using-ssh-768x262.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p class=\"has-text-align-left\">As you can see, you first need to confirm the connection using the RSA fingerprint of the remote server. Once you type &#8220;yes&#8221;, it&#8217;ll be permanently added to the &#8220;known_hosts&#8221; file.<\/p>\r\n\r\n\r\n\r\n<p>The &#8220;known_hosts&#8221; file in Windows is located at:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">C:\\Users\\<b>[UserName]<\/b>\\.ssh\\known_hosts<\/pre>\r\n\r\n\r\n\r\n<p>Replace <b>[UserName]<\/b> with your own Windows username. It&#8217;s a file without an extension, like this:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"700\" height=\"356\" class=\"wp-image-37128\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/use-ssh-to-download-files-from-server-to-desktop.jpg\" alt=\"use ssh to download files from server to desktop\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/use-ssh-to-download-files-from-server-to-desktop.jpg 700w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/use-ssh-to-download-files-from-server-to-desktop-300x153.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/use-ssh-to-download-files-from-server-to-desktop-150x76.jpg 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>An editor like Notepad++ is ideal for these kinds of files. Each RSA fingerprint is added on a new line. This allows you to clear them easily by deleting an entire line at once if you ever need to remove an entry.<\/p>\r\n\r\n\r\n\r\n<p>Once you provide your password in the prompt, the file is downloaded immediately, as shown here:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"313\" class=\"wp-image-37129\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/using-ssh-to-download-files-from-your-server-to-desktop.jpg\" alt=\"using ssh to download files from your server to desktop\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/using-ssh-to-download-files-from-your-server-to-desktop.jpg 800w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/using-ssh-to-download-files-from-your-server-to-desktop-300x117.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/using-ssh-to-download-files-from-your-server-to-desktop-150x59.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/05\/using-ssh-to-download-files-from-your-server-to-desktop-768x300.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>And you&#8217;re done! Navigate to the location you specified in your SCP command and the file should be visible.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator is-style-wide\" \/>\r\n\r\n\r\n<div class=\"wp-block-image is-style-default\">\r\n<figure class=\"alignleft size-large\"><img decoding=\"async\" width=\"115\" height=\"115\" class=\"wp-image-34586\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/server-ssh-file-transfer-to-desktop-support.jpg\" alt=\"download files ssh computer\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>SCP is the most direct way to transfer and <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-send-and-download-files-using-rsync\/\">download files<\/a> from remote servers to local systems. It makes use of the same SSH protocols, so the connection is encrypted all the way through, making it immune to man-in-the-middle attacks. Hopefully, this tutorial will help you use it in an efficient, and easy manner. If you use one of our <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\">Managed Linux VPS<\/a> services, and you have an issue with SCP or need more information about it please don&#8217;t hesitate to contact our 24&#215;7 Linux Server Support, which comes included with your hosting plan.<\/p>\r\n\r\n\r\n\r\n<p>If this tutorial helped you move files from your remote server to your local machine, maybe consider sharing this knowledge with your friends by using our share shortcuts. You can also leave any additional tips or questions in our comment section below. Thank you.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>An SSH session is like a portal into another machine. If you&#8217;re used to working with Windows, you&#8217;ll know how &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Download a File From a Server to Your Desktop Using SSH\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#more-29077\" aria-label=\"Read more about How to Download a File From a Server to Your Desktop Using SSH\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":34583,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,13],"tags":[27,1867,68],"class_list":["post-29077","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-and-tricks","category-tutorials","tag-linux","tag-scp","tag-ssh","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Download a File From a Server to Your Desktop Using SSH<\/title>\n<meta name=\"description\" content=\"Easily download files from your server to your desktop computer using SSH by following this easy guide. We&#039;ll show you how, step-by-step.\" \/>\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.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Download a File From a Server to Your Desktop Using SSH\" \/>\n<meta property=\"og:description\" content=\"How to Download a File From a Server to Your Desktop Using SSH | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-24T16:39:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-26T10:44:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Download a File From a Server to Your Desktop Using SSH\",\"datePublished\":\"2020-10-24T16:39:25+00:00\",\"dateModified\":\"2022-07-26T10:44:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/\"},\"wordCount\":735,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/how-to-download-a-file-from-ssh-to-your-desktop.jpg\",\"keywords\":[\"Linux\",\"scp\",\"ssh\"],\"articleSection\":[\"Tips and Tricks\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/\",\"name\":\"How to Download a File From a Server to Your Desktop Using SSH\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/how-to-download-a-file-from-ssh-to-your-desktop.jpg\",\"datePublished\":\"2020-10-24T16:39:25+00:00\",\"dateModified\":\"2022-07-26T10:44:44+00:00\",\"description\":\"Easily download files from your server to your desktop computer using SSH by following this easy guide. We'll show you how, step-by-step.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/how-to-download-a-file-from-ssh-to-your-desktop.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/how-to-download-a-file-from-ssh-to-your-desktop.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to download a file from ssh to your desktop\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Download a File From a Server to Your Desktop Using SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Download a File From a Server to Your Desktop Using SSH","description":"Easily download files from your server to your desktop computer using SSH by following this easy guide. We'll show you how, step-by-step.","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.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/","og_locale":"en_US","og_type":"article","og_title":"How to Download a File From a Server to Your Desktop Using SSH","og_description":"How to Download a File From a Server to Your Desktop Using SSH | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-10-24T16:39:25+00:00","article_modified_time":"2022-07-26T10:44:44+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Download a File From a Server to Your Desktop Using SSH","datePublished":"2020-10-24T16:39:25+00:00","dateModified":"2022-07-26T10:44:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/"},"wordCount":735,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg","keywords":["Linux","scp","ssh"],"articleSection":["Tips and Tricks","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/","name":"How to Download a File From a Server to Your Desktop Using SSH","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg","datePublished":"2020-10-24T16:39:25+00:00","dateModified":"2022-07-26T10:44:44+00:00","description":"Easily download files from your server to your desktop computer using SSH by following this easy guide. We'll show you how, step-by-step.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/10\/how-to-download-a-file-from-ssh-to-your-desktop.jpg","width":742,"height":372,"caption":"how to download a file from ssh to your desktop"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-download-a-file-from-a-server-to-your-desktop-using-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Download a File From a Server to Your Desktop Using SSH"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=29077"}],"version-history":[{"count":10,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29077\/revisions"}],"predecessor-version":[{"id":40950,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29077\/revisions\/40950"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/34583"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=29077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=29077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=29077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}