{"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>\r\n
\"download<\/figure>\r\n\r\n\r\n\r\n

An SSH session is like a portal into another machine. If you’re used to working with Windows, you’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

\r\n
\"ssh<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

However, sometimes you will need to download a file from SSH to your local desktop, such as if you are using one of our managed VPS hosting services<\/a>. And there’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 “SCP” which stands for “Secure Copy” that’s made for precisely these kinds of situations.<\/p>\r\n\r\n\r\n\r\n

<\/p>\r\n\r\n\r\n\r\n

Here’s how it works. First, we have a file on the remote server called filetodownload.txt<\/code>, as shown here:<\/p>\r\n\r\n\r\n\r\n

\r\n
\"download<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

We’re going to transfer this file from Linux to our Windows desktop.<\/p>\r\n\r\n\r\n\r\n

\n

Table of Contents<\/p>\n