{"id":187067,"date":"2020-05-06T02:06:15","date_gmt":"2020-05-06T02:06:15","guid":{"rendered":"https:\/\/premium.wpmudev.org\/blog\/?p=187067"},"modified":"2020-04-20T12:45:29","modified_gmt":"2020-04-20T12:45:29","slug":"sftp-transfer-files-securely","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/sftp-transfer-files-securely\/","title":{"rendered":"What The SFTP? Transfer Your Files Secure-ly!"},"content":{"rendered":"<p>You\u2019ve just installed a brand new theme for your new site. You load it up and begin to admire it &#8211; it\u2019s perfect! Except&#8230;what\u2019s that weird orange tint on all of your photos?! How do you get rid of it? It\u2019s time you unlocked the world of SFTP\u2026<\/p>\n<p>It\u2019s often said that you can build sites on WordPress without ever touching a line of code.<\/p>\n<p>This is absolutely true &#8211; however, it\u2019s like owning a Ferrari and never going past the third gear.<\/p>\n<p>I\u2019m not saying you need to start building your own themes and creating new plugins to be able to get the most out of WordPress, just that developing the skills to at least make minor aesthetic changes to your site should be on most people\u2019s to-do list.<\/p>\n<p>Trust me &#8211; the sense of accomplishment you get from fixing that annoying layout issue on your site all by yourself is second to none.<\/p>\n<p>But if you want to meddle with the files in order to make these kinds of changes, you need to know how to access them.<\/p>\n<p>There\u2019s a couple of different ways you can do this, but in this article, we\u2019re going to focus on SFTP (Secure File Transfer Protocol).<\/p>\n<p>If you want to skip straight to the good stuff, here&#8217;s what we will be covering:<\/p>\n<ol>\n<li><a href=\"#encryption\">What is Encryption?<\/a><\/li>\n<li><a href=\"#SFTPvFTP\">SFTP V FTP<\/a><\/li>\n<li><a href=\"#work\">How Does SFTP Work?<\/a><\/li>\n<li><a href=\"#FTPS\">What is FTPS?<\/a><\/li>\n<li><a href=\"#SFTP\">How Do I Access My Files With SFTP?<\/a><\/li>\n<li><a href=\"#client\">Which SFTP Client Should I Use?<\/a><\/li>\n<li><a href=\"#tutorial\">Accessing Files With FileZilla<\/a><\/li>\n<li><a href=\"#command\">Accessing Files Through the Command Line<\/a><\/li>\n<\/ol>\n<figure id=\"attachment_187525\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187525\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/05\/Dev_Man_Padlock.jpg\" alt=\"Cartoon of Devman putting chains and a padlock around a letter, about to post it.\" width=\"600\" height=\"300\" \/><figcaption class=\"wp-caption-text\">If only Devman knew there was another way to securely send files&#8230;<\/figcaption><\/figure>\n<p>One of the main benefits of using SFTP to transfer your files over other methods is that it encrypts your data.<\/p>\n<p>Therefore, before we delve into how SFTP works, we must first understand the basics of encryption.<\/p>\n<h2 id=\"encryption\">What is Encryption?<\/h2>\n<p>Encryption is a method of protecting data by converting it to code or \u2018cipher\u2019 that can only be solved by the people who have permission to view it.<\/p>\n<p>Simple encryption could be in the form of the A1Z26 cipher, which assigns each letter a numeric value based on their position in the alphabet (A = 1, B = 2), so the word \u2018PASSWORD\u2019, for example, would be converted to 16;1;19;19;23;15;18;4.<\/p>\n<p>This is a very simple cipher and wouldn\u2019t take a rocket scientist to crack the code.<\/p>\n<p>With the help of computers, files can be encrypted in virtually uncrackable ways, as machines are able to generate complex, random encryptions that no amount of guesswork would be able to solve.<\/p>\n<p>The recipient possesses the \u2018key\u2019, which unscrambles the code and allows them to read it.<\/p>\n<p>A hacker\u2019s goal would be to gain access to plain text data, i.e. data that hasn\u2019t been encrypted.<\/p>\n<p>If a hacker manages to get their hands on ciphertext (encrypted data) the chances of them being able to decode it and view the information it contains are virtually zero, which is why encryption is so widely used.<\/p>\n<h3>Take Passwords For Example<\/h3>\n<p>Any website which stores user information should encrypt it in case of a breach.<\/p>\n<p>When you log into WordPress, you input your password which could be something as simple as \u2018<strong>Lilac12<\/strong>\u2019 however WordPress would encrypt it before storing it on the database, so at their end, it could look as complex as <strong>ef9ded6169f538c36f9ad613806a7b99<\/strong>.<\/p>\n<p>If a hacker breaches the WordPress database, they wouldn\u2019t be able to access your account unless they were able to transfer the code back into Lilac12 in order to log in.<\/p>\n<p>In theory, the only person who truly knows your password is you!<\/p>\n<h2 id=\"SFTPvFTP\">SFTP v FTP<\/h2>\n<p>So, back to SFTP &#8211; what is it, and how does it differ from <a href=\"https:\/\/wpmudev.com\/blog\/ftp-wordpress\/\" target=\"_blank\" rel=\"noopener\">FTP<\/a>?<\/p>\n<p>One of the main distinctions between SFTP and FTP (File Transfer Protocol), is that SFTP is secure whereas FTP is not (I know, who\u2019d have guessed?!)<\/p>\n<p>Let\u2019s say I call you on the phone and we\u2019re having a private conversation.<\/p>\n<p>If someone manages to tap into the line, they hear us speaking English and they will know everything we discuss. This is FTP, as there is no encryption taking place.<\/p>\n<p>If I call you on an encrypted line, all they hear is gibberish, so even if they managed to intercept the connection, it\u2019s encrypted in a way that means they learn nothing from it and the content is useless to them. This is SFTP &#8211; the encryption of files protects your data in the event of an interception.<\/p>\n<h3 id=\"work\">How Does SFTP Work?<\/h3>\n<p>You start the process by logging into an SFTP client to initiate the connection.<\/p>\n<p>The details required include a username, password, host (your site\u2019s URL), and port number, which can all be obtained through your hosting provider.<\/p>\n<p>You can also generate keys that are swapped between the servers, but for the novice user, a username and password is definitely the right way to go.<\/p>\n<p>Once you have authenticated your connection with either of these methods, the files are encrypted and sent to the recipient.<\/p>\n<p>As the files can only be decrypted by the intended recipient, anyone who manages to intercept the connection will only have access to a bunch of jumbled, unreadable files.<\/p>\n<h3>So I Guess This Means No One Uses FTP Anymore?<\/h3>\n<p>Unfortunately, no, they still do.<\/p>\n<p>FTP has been around a very long time &#8211; <a href=\"https:\/\/www.globalscape.com\/blog\/5-things-you-need-know-about-ftp\" target=\"_blank\">the specification for it was written before the internet was even invented!<\/a><\/p>\n<p>Back then, it was assumed that internet activity wasn\u2019t malicious, and therefore FTP wasn\u2019t created with the need to protect files from various types of hacking methods.<\/p>\n<p>The goal was simply to transfer files from one place to another.<\/p>\n<p>These days, cybersecurity is a huge threat to companies and individuals everywhere, so protecting data should be on the forefront of everyone\u2019s mind when transferring files.<\/p>\n<p>Despite the fact that SFTP is now in existence, millions of people and businesses around the world still use FTP, <a href=\"https:\/\/www.goanywhere.com\/blog\/is-ftp-dead\" target=\"_blank\">although some sources suggest that it is dying a slow death.<\/a><\/p>\n<p>If you\u2019re not sending confidential or valuable data, it can be easy to think that FTP will be fine in this instance, as no harm would come from anyone having access to this particular set of files.<\/p>\n<p>Whilst this may technically be true, businesses would always be advised to use a secure method when transferring files regardless of the content.<\/p>\n<p>Luckily, there are tons of regulations in place which prevent businesses from taking risks like this, so the bottom line is SFTP over FTP every time!<\/p>\n<h2 id=\"FTPS\">What About FTPS &#8211; Where Does That Come Into It?<\/h2>\n<p>With so many acronyms all containing the same few letters, it\u2019s extremely easy to get confused.<\/p>\n<p>So, before we get any deeper, let\u2019s clear up the difference between everything we\u2019ve learnt thus far and the next arrival to the data transfer party &#8211; FTPS.<\/p>\n<p>The FTP part of FTPS is indeed the same FTP that we\u2019ve already met &#8211; a way to transfer files over the internet, but without the added security that SFTP offers via encryption.<\/p>\n<p>FTPS however, is something slightly different.<\/p>\n<p>Whilst SFTP pairs FTP with an SSH connection in order to securely transfer files, FTPS works with SSL to keep your files safe.<\/p>\n<h3>&#8220;What Is SSL?!&#8221; I Hear You Cry<\/h3>\n<p>SSL puts the S in HTTPS &#8211; it stands for Secure Sockets Layer and is what differentiates a secure site (HTTPS) from an unsecure one (HTTP).<\/p>\n<p>To do this, your browser binds to the website forming a secure connection which is extremely difficult to penetrate.<\/p>\n<p>This is done with the help of an SSL certificate. The browser connects to the website\u2019s server, checks if it has an SSL certificate and if it does and the browser can authenticate it, it forms a binding connection which allows you to safely transfer information.<\/p>\n<h2 id=\"SFTP\">How Can I Access My Files Using SFTP?<\/h2>\n<p>So now that we\u2019re better versed in the terminology, how do we put this into practice and access our WordPress files?<\/p>\n<p>There are a couple of different ways you can do this.<\/p>\n<p>Some hosting providers supply a platform for you to directly access your files such as C Panel, however, if you don\u2019t have access to anything similar, you can either use a plugin, the command terminal, or an SFTP client.<\/p>\n<p>A plugin <a href=\"https:\/\/en-gb.wordpress.org\/plugins\/wp-file-manager\/\" target=\"_blank\">File Manager<\/a> allows you to copy and amend your files, however, we wouldn\u2019t recommend this method.<\/p>\n<p>This is because if you change something in your site\u2019s files, one simple syntax error could mean your whole site crashes and you are unable to even get to the dashboard.<\/p>\n<p>If this is a mistake you have made using a plugin, you won\u2019t even be able to get back into the plugin to fix the issue &#8211; it\u2019s so much safer to use an external source such as an SFTP client so that you can get straight back in and correct the issue.<\/p>\n<p>So now we\u2019ve settled on SFTP, which client should we use?<\/p>\n<h2 id=\"client\">Choosing an SFTP Client<\/h2>\n<p>There are a number of SFTP clients that you can use to access your files, and most are free.<\/p>\n<p>Popular choices are WinSCP, Cyberduck and FileZilla<\/p>\n<p>For basic users, all that really differs are the interfaces, so we&#8217;ll take a quick look at these three below.<\/p>\n<p>First up, Cyberduck!<\/p>\n<h3>Cyberduck<\/h3>\n<p>Not all SFTP clients are a great fit for Mac users, but <a href=\"https:\/\/cyberduck.io\/\" target=\"_blank\">Cyberduck<\/a> is one of the exceptions.<\/p>\n<figure id=\"attachment_187068\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187068\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/cyberduck-sftp-client.png\" alt=\"Screenshot of Cyberduck showing the layout of the folders and files\" width=\"600\" height=\"440\" \/><figcaption class=\"wp-caption-text\">Cyberduck seems to have its ducks in a row.<\/figcaption><\/figure>\n<p>It has a Mac-like aesthetic which is very beginner-friendly and supports a wide range of servers, so is a good choice for anyone looking to venture into the world of SFTP.<\/p>\n<h3>WinSCP<\/h3>\n<p>With 132 million downloads in the bag, <a href=\"https:\/\/winscp.net\/eng\/index.php\" target=\"_blank\">WinSCP<\/a> is also a great choice for your SFTP needs.<\/p>\n<figure id=\"attachment_187072\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187072\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/WinSCP-sftp-client-2.png\" alt=\"Screenshot showing the folder and file layour of WinSCP.\" width=\"600\" height=\"494\" \/><figcaption class=\"wp-caption-text\">Ahh the good ol&#8217; yellow folders we all know and love.<\/figcaption><\/figure>\n<p>It\u2019s only available for Windows, so it\u2019s designed in a way that makes it quick and simple for Windows users to navigate, i.e. with lots of well-organized, yellow folders.<\/p>\n<p>Like Cyberduck, it\u2019s also completely free to use and you can easily access your files and make changes to your WordPress files using this client.<\/p>\n<h3>FileZilla<\/h3>\n<p>One of the most popular by far is <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\">FileZilla<\/a> &#8211; it\u2019s completely cross-platform (even Linux) and again, free.<\/p>\n<figure id=\"attachment_187073\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187073\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/Filezilla-screenshot.png\" alt=\"Screenshot showing the folder and file layout of Filezilla.\" width=\"600\" height=\"541\" \/><figcaption class=\"wp-caption-text\">FileZilla has been a solid choice for SFTP since its creation in 2001.<\/figcaption><\/figure>\n<p>Below I will take you through how to use FileZilla to download copies of your files from WPMU DEV\u2019s servers.<\/p>\n<h3>Not a WPMU DEV Member?<\/h3>\n<p>This quick tutorial should give you a good idea of what you would need to do to access your files from any hosting provider.<\/p>\n<p>Orrrrrr, you could just take a look at all the <a href=\"https:\/\/wpmudev.com\/\" target=\"_blank\">awesome goodness included with our membership<\/a>, take the plunge and host a site or two on our servers.<\/p>\n<h2 id=\"tutorial\">Using FileZilla To Access Your Files<\/h2>\n<p>First of all, let\u2019s download FileZilla &#8211; just <a href=\"https:\/\/filezilla-project.org\/download.php?type=client\" target=\"_blank\">head to their site<\/a> and get it installed.<\/p>\n<p>You can now choose whether to keep reading, or follow our quick video tutorial.<\/p>\n<p><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><span class=\"embed-youtube-lazy-id dev-hidden\">stXca0tg4Ak<\/span><\/span><\/p>\n<p>In order to start the connection, you&#8217;ll need to enter your credentials as mentioned above.<\/p>\n<p>To create these, you need to go to our website and into the <a href=\"https:\/\/wpmudev.com\/hub\/hosting\/\" target=\"_blank\">hosting section of the hub<\/a>.<\/p>\n<p>You will find your sites in a list &#8211; just choose the one you want and click on \u2018manage\u2019 which will take you to the back-end of your WordPress site.<\/p>\n<figure id=\"attachment_187074\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187074\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/hosting-manage.png\" alt=\"The section of the hub where you can click to manage your site preferences.\" width=\"600\" height=\"131\" \/><figcaption class=\"wp-caption-text\">Click on the black arrow to display the \u2018Manage\u2019 button.<\/figcaption><\/figure>\n<figure id=\"attachment_187075\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187075\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/SFTP-SSH-top-bar.png\" alt=\"The section of the hub where you can make various changes to your site.\" width=\"600\" height=\"160\" \/><figcaption class=\"wp-caption-text\">From here, click SFTP\/SSH.<\/figcaption><\/figure>\n<p>This will take you to the account creation screen.<\/p>\n<figure id=\"attachment_187077\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187077\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/Add-SFTP-user.png\" alt=\"The screen where you can click to add either an SSH or SFTP user.\" width=\"600\" height=\"202\" \/><figcaption class=\"wp-caption-text\">Click \u2018Add User\u2019 and then \u2018Add SFTP User&#8217;.<\/figcaption><\/figure>\n<p>Here you need to choose a username and password:<\/p>\n<figure id=\"attachment_187078\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187078\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-user-create-credentials-1.png\" alt=\"The screen from which you can create SFTP credentials by entering a username and password.\" width=\"600\" height=\"530\" \/><figcaption class=\"wp-caption-text\">You\u2019re provided with a randomly generated password, but feel free to change it.<\/figcaption><\/figure>\n<p>Your password needs to be a series of letters and numbers &#8211; and a pretty long one at that!<\/p>\n<p>If your password isn\u2019t sufficiently long enough, you won\u2019t be able to continue &#8211; what\u2019s the point in using a secure method of file transfer if your password is simple enough to guess?!<\/p>\n<p>Now you\u2019ve created your credentials, it\u2019s time to head back to Filezilla to set up the connection.<\/p>\n<p>The host is your website address, so enter that along with your username and password that you\u2019ve just created within your hosting hub, and the port number, which is 22.<\/p>\n<p>Click \u2018Quickconnect\u2019 and voila! You now have access to all of your WordPress files.<\/p>\n<figure id=\"attachment_187079\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187079\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/Filezilla-enter-credentials.png\" alt=\"The screen where you input your credentials to connect to the host server.\" width=\"600\" height=\"102\" \/><figcaption class=\"wp-caption-text\">You can save your site information for quicker connection by heading to File&gt;Site Manager.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_187080\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187080\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/Filezille-file-list.png\" alt=\"The list of files within FileZilla when you first connect to the server.\" width=\"600\" height=\"631\" \/><figcaption class=\"wp-caption-text\">Just make sure you do your research before you jump in and start editing!<\/figcaption><\/figure>\n<p>All you need to do now is right-click on the file you want to open and select \u201cView\/Edit\u201d.<\/p>\n<p>This will then open the file in your text editor.<\/p>\n<figure id=\"attachment_187081\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187081\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/Filezilla-opened-file.png\" alt=\"Showing the opened style.css file inside the Notepad ++ text editor application.\" width=\"600\" height=\"657\" \/><figcaption class=\"wp-caption-text\">Your file will open in the text editor (I&#8217;m using Notepad ++).<\/figcaption><\/figure>\n<p>You can make the changes you need and then reupload the file back to the host server.<\/p>\n<figure id=\"attachment_187082\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187082\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/Filezilla-reupload-file.png\" alt=\"The pop-up which asks if you want to upload the file back to the server.\" width=\"600\" height=\"197\" \/><figcaption class=\"wp-caption-text\">Once you click &#8216;Yes&#8217;, the changes will appear live on your site.<\/figcaption><\/figure>\n<p>And it\u2019s as simple as that!<\/p>\n<p>The hard part is knowing what to do once you have the files within your reach.<\/p>\n<p>There are tons of CSS tutorials online &#8211; check out our <a href=\"https:\/\/wpmudev.com\/blog\/css-mega-guide\/\" target=\"_blank\">handy guide packed full of links to awesome resources<\/a> if you&#8217;re hoping to jump into the world of web development languages, or if you just need a refresher. Also, here is another handy dandy tutorial on <a href=\"https:\/\/wpmudev.com\/blog\/understanding-file-permissions\/\" target=\"_blank\" rel=\"noopener\">setting file permissions<\/a> that you may find useful when working with files on your server.<\/p>\n<h2 id=\"command\">Ready To Step It Up A Notch?<\/h2>\n<p>Another way to access your files is through the command line\/terminal.<\/p>\n<p>Be warned &#8211; if you have no idea what you\u2019re doing with the command line, then I would strongly advise that you go away, do a bit of research and come back when you\u2019re confident you\u2019re not going to break your site!<\/p>\n<p>I am simply here to show you how to access it via our hosting &#8211; what you do with that power is entirely up to you!<\/p>\n<p>Unlike many hosting companies, for an added layer of security, websites hosted on our servers have one set of credentials for SFTP and one for SSH.<\/p>\n<p>If all you want to do is download, make changes to your files and then reupload them, you can do this through SFTP.<\/p>\n<p>If you want to do the more admin-y things such as add users or change settings, you will need to <a href=\"https:\/\/wpmudev.com\/blog\/what-is-ssh-wordpress\/\" target=\"_blank\" rel=\"noopener\">access the server via SSH<\/a> instead.<\/p>\n<p>It is a very similar process, however, you would need to head back over to the hosting hub and create an SSH user in the same way you did an SFTP one.<\/p>\n<p>As before with FileZilla, using SFTP through the command line opens up a secure connection that allows files to be transferred over the internet.<\/p>\n<p>If you\u2019re on a Windows machine, you simply open up the command line by hitting Win+R and then typing in \u201ccmd\u201d. If you\u2019re on Mac, head to \u2018Terminal\u2019 in your applications.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_187084\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187084\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-command-line.png\" alt=\"The screen you are greeted with when you open up the command line in Windows.\" width=\"600\" height=\"225\" \/><figcaption class=\"wp-caption-text\">This is the screen that will appear on a Windows operating system.<\/figcaption><\/figure>\n<p>You then need to establish the connection to your site by typing in the following:<\/p>\n<p>sftp (your sftp username)@(your website address)<\/p>\n<p>So in this example, mine would be sftp kirstan@kirstan.wpmudev.host<\/p>\n<p>This is telling the server that I want to log in via SFTP with the account name \u2018kirstan\u2019 into my kirstan.wpmudev.host website.<\/p>\n<p>It will then ask for your password &#8211; once you have entered this, you will have remote access to your files.<\/p>\n<figure id=\"attachment_187085\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187085\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-command-line-with-credentials.png\" alt=\"Credentials entered into the command line.\" width=\"604\" height=\"190\" \/><figcaption class=\"wp-caption-text\">If you need to paste your password in, just right-click and hit enter.<\/figcaption><\/figure>\n<p>Right, so we\u2019re in!!<\/p>\n<p>Now we can download copies of our WordPress files by simply inputting a few commands and hitting enter each time.<\/p>\n<p>First, we type in \u201cls\u201d so that we\u2019re navigating within the server rather than our local machine.<\/p>\n<figure id=\"attachment_187086\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-187086 size-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-ls-site.png\" alt=\"The command line with the command 'ls' typed in to display the current folder.\" width=\"600\" height=\"192\" \/><figcaption class=\"wp-caption-text\">This will firstly display the \u201csite\u201d folder, which is the one that contains all of your WordPress files.<\/figcaption><\/figure>\n<p>Then you can navigate around the folders by using the \u201cls\u201d command which will show you the list of folders and documents inside the folder you\u2019re currently in, and \u201ccd\u201d which will take you to the folder you specify.<\/p>\n<p>Let\u2019s take a quick look below:<\/p>\n<figure id=\"attachment_187087\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187087\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-ls-cd-navigation.png\" alt=\"The next screen of the command line where you can see all folders and files inside the public_html folder.\" width=\"600\" height=\"398\" \/><figcaption class=\"wp-caption-text\">It looks more daunting than it is &#8211; promise!<\/figcaption><\/figure>\n<p>I am now inside the public_html folder and as you can see from above, I navigated here by typing in \u201ccd site\u201d, using \u201cls\u201d to check the names of the folders and then typing \u201ccd public_html\u201d.<\/p>\n<p>Each time you input a command, remember to hit enter so that it can be processed!<\/p>\n<p>Your WordPress files are always organized in the same series of folders and subfolders no matter which method you choose to access them.<\/p>\n<p>If I wanted to download my theme\u2019s stylesheet, I would head into wp content&gt;themes&gt;twentynineteen.<\/p>\n<p>I navigated to the theme\u2019s files by using the \u201cls\u201d and \u201ccd\u201d commands, and now I\u2019m ready to download the file I need.<\/p>\n<figure id=\"attachment_187088\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-187088 size-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-twentynineteen-folder.png\" alt=\"INside the Twenty Ninteen themes folder showing the list of files.\" width=\"600\" height=\"308\" \/><figcaption class=\"wp-caption-text\">If you want to retrieve a file, you type \u201cget\u201d followed by the name of the file, and to upload, just replace \u201cget\u201d with \u201cput\u201d.<\/figcaption><\/figure>\n<p>I typed \u201cget stylesheet.css\u201d and was able to easily download a copy of the file directly to my downloads folder:<\/p>\n<figure id=\"attachment_187089\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187089\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/04\/sftp-file-download.png\" alt=\"The screen from where I downloaded the style.css filee.\" width=\"600\" height=\"96\" \/><figcaption class=\"wp-caption-text\">I can then edit it and use the \u201cput\u201d command to send it back to the server.<\/figcaption><\/figure>\n<p>Once you\u2019ve learned the list of commands, you&#8217;ll be able to navigate your way through your WordPress site this way like it\u2019s second nature.<\/p>\n<p>If this is something you fancy getting to grips with, you can <a href=\"https:\/\/www.comparitech.com\/net-admin\/sftp-commands-cheat-sheet\/\" target=\"_blank\">check out this \u2018cheat sheet\u2019<\/a> of some of the most frequently used SFTP commands.<\/p>\n<h2>Congratulations &#8211; You\u2019ve Just Unlocked The Next Level of WordPress!<\/h2>\n<p>Now that you know how to get your hands on your files, you can start to think about what you\u2019ll do with this new power.<\/p>\n<p>If you fancy unleashing your imagination and customizing your perfect theme or you just want to find out a bit more about how the PHP behind WordPress really works, check out these recommended <a href=\"https:\/\/wpmudev.com\/blog\/wordpress-development-courses\/\" target=\"_blank\" rel=\"noopener\">WordPress developer courses<\/a>.<\/p>\n<p>Or, if you&#8217;re the type of person that likes to &#8216;get stuck into it boots and all&#8217; and try things out for yourself, sign up for our no-risk membership <a href=\"https:\/\/wpmudev.com\/#trial\" target=\"_blank\" rel=\"noopener\">free trial<\/a> and check out our secure file transfer tools and more in the [humblebrag alert!] <a href=\"https:\/\/wpmudev.com\/blog\/the-best-wordpress-hosting\/\" target=\"_blank\" rel=\"noopener\">best managed WordPress hosting on the planet<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You\u2019ve just installed a brand new theme for your new site. You load it up and begin to admire it &#8211; it\u2019s perfect! Except&#8230;what\u2019s that weird orange tint on all of your photos?! How do you get rid of it? It\u2019s time you unlocked the world of SFTP\u2026 It\u2019s often said that you can build [&hellip;]<\/p>\n","protected":false},"author":801248,"featured_media":187092,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"15","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[557,263],"tags":[],"tutorials_categories":[11233],"class_list":["post-187067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-tutorials","tutorials_categories-hosting"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/187067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/801248"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=187067"}],"version-history":[{"count":22,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/187067\/revisions"}],"predecessor-version":[{"id":187620,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/187067\/revisions\/187620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/187092"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=187067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=187067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=187067"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=187067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}