Itβs easy enough to change the way WordPress behaves and looks using your siteβs dashboard. If you have a File Transfer Protocol (FTP) client, you can even edit the platformβs core files. However, neither tool enables you to directly interact with and manage your server.
Thatβs where Secure Shell Access (SSH) comes in. SSH is a protocol β just like FTP β that enables you to connect with your server and make changes. In this article, weβll talk more about what SSH is, how it works, and when itβs useful. Then weβll teach you how to connect to your website via SSH in three steps.
Letβs get started!
What SSH Is (And When Youβd Want to Use It)
There are several ways you can access and interact with your website. You can log into your WordPress dashboard to make changes to your site, using the tools the platform provides by default. If you want to go a step further, you can connect to your site via FTP, and manage your site in a more direct way. This technique lets you access, download, and upload files, including those related to core functionality.
However, there is another, even more direct way of interacting with your site. Itβs called Secure Shell (SSH), and is in many ways similar to FTP. The difference is that it provides you with a greater degree of control, and it usually doesnβt require a graphical interface. Using SSH, you can interact with your siteβs filesΒ andΒ server using commands, giving you full access to your serverβs configuration. This is something FTP canβt do.
Keep in mind that not all hosting providers will give you SSH access. For example, shared hosting plans almost never include this option. After all, if you made any changes to your server, youβd also be affecting a lot of other websites. As a rule of thumb, if youβre using a hosting plan where you have a server to yourself, youΒ shouldΒ have SSH access. Virtual Private Servers (VPS) hosting and dedicated hosting are two such examples.
To be clear, while SSH is a little more advanced than FTP, you donβt need to be a developer to use it. However, you should be familiar with the command line, and know how to look up the exact commands youβll need to perform specific actions. With that knowledge in hand, all thatβs left is to learn how to set up SSH for your site.
How to Connect to WordPress Using SSH (In 3 Steps)
Learning how to connect to WordPress using SSH is fairly simple, even if it can appear daunting at first. Weβre going to walk you through the process now. When weβre done, youβll be able to interact directly with your websiteβs server.
Step 1: Download and Set Up an SSH Client
If youβre using OS X or a Linux distribution, youβll be able to establish an SSH connection to your site usingΒ the command line. You can also use a client, much like how you would use FileZilla toΒ access via FTP.
Windows users will need to download an advanced command line application, such as Cmder or a dedicated SSH client. Once youβre connected to your website via SSH, however, all interactions will occur via the command line. So feel free to choose any client you want.
For this tutorial, weβll useΒ PuTTY, a simple open-source application thatβs popular and easy to use. Go ahead and download the latest version of the client from the PuTTY homepage. Once youβve installed the program, you can run it and move on to the next step.
Step 2: Access Your Server Via SSH
When you first run PuTTY, the client will ask where you want to connect to. Just as with FTP, youβll need to enter a host name and specify a port number:
Youβll notice, however, that the client doesnβt ask you for a set of credentials. That step will come in a moment. For now, go ahead and enter the host or IP address for your server. In our case, weβre using a Vultr VPS, so we can locate our serverβs IP in our dashboard:
Where you find this information will vary, depending on the host youβre using. Many providers enable you to find it by logging into your control panel. If youβre not sure where to find your SSH credentials, you can consult your hosting providerβs knowledge base.
Once you have a host name and port number, enter them into PuTTY and a command line will launch. Now your server will ask you for your account information, starting with your usernameβ¦
β¦and then your password:
In most cases, your username and password will be the same ones you use to log into your hosting dashboard. If those donβt work, take a look at your hosting control panel and check to see if thereβs anΒ SSH AccessΒ section, which should contain more detailed instructions.
When youβve successfully connected to your server, you can start entering commands right away. Letβs look at how that process works.
Step 3: Interact With Your Server Using the Command Line
If youβre familiar with the command line, you know that it enables you to do nearly anything you want. With the right commands, you can move files, delete folders, create new directories, change user permissions, and more.
The good news is that thereβs no trick to using the command line. In most cases, youβll just need to know the commands for whatever actions you want to perform. For example, right after you log into your server via SSH, you should be located in the serverβsΒ rootΒ folder. If you want to know what files and directories it contains, all you have to do is type inΒ lsΒ and hit Enter:
Youβll notice that thereβs one name in blue text, and two others in white text. Blue items represent folders, whereas the rest are plain files. If you want to access that folder, you can so using the commandΒ cd email_patch:
Now, the start of your command line will indicate that youβve moved on to a new location. From here, you can return to your previous directory by typingΒ cd, without any additions:
Those are just a few basic examples of what you can do here. If youβre itching to learn more about how to interact with your server using the command line, you can find plenty ofΒ excellent resources that will help you get started.
Conclusion
The WordPress dashboard and FTP are both powerful tools. However, they donβt enable you to make changes directly to the server where your website is hosted. To achieve that, youβll need to use a protocol that provides you with a higher degree of access and control, such as SSH.
Getting started with SSH is remarkably simple, as long as your web host provides you with access to it. All youβll need to do is:
- Download and set up an SSH client, such as PuTTY.
- Log into your server via SSH.
- Interact with your server using the command line.
Do you have any questions about using SSH to manage your website? Letβs talk about them in the comments section below!
Article image thumbnail by Julia Tim / shutterstock.com
I have added https to my http blog. I changed the address in wordpress settings, Added redirection, but still i am getting pages in search with http.
if you want to put https on your website you need buy ssl certificate .
Putty is not much fun, try Mobaxterm, i used it when i recently moved from shared hosting to my own VPS, there is so much more you can do with it compared to Putty.
We have a VPS with Pagely, an excellent host. When we first became their client, they tried to walk me through setting up our SSH (I remember installing Putty), but I had no idea what that even was, and the concept of those commands still terrifies me. They kindly provided me with a good old FTP, which I have found very useful. They execute the occasional commands for us as part of our service package.
I’m glad to see this description of an SSH as something that a non-developer could use. I will bookmark it and investigate those links sometime in the near future, and level up my web admin game.
Nice and simple tutorial.
Thank you for good explainationa also noob friendly.
You’re very welcome, Dan. Thanks for your comment.
What is this amateur hour?
Thanks for short but a very useful guide.
Regards
No problem. Happy to help π