In this guide, you will learn how to connect to your Cloudways server using SSH and SFTP. We will cover different Cloudways Login methods to connect to it.
Before going into the methods, let's get a short introduction to SSH and SFTP.
What are SSH & SFTP?
SSH(Secure Shell) is a protocol used to access and manage a remote server securely.
With SSH, you can run commands and manage your remote server from your local system. It is useful for performing administrative tasks even when your hosting dashboard is not working properly.
SFTP (Secure File Transfer Protocol) is used for securely transferring files between your local system and remote servers.
For example, you can upload website files to your Cloudways server or download them to your local system using SFTP.
Now, lets look at the methods we can use to connect to a Cloudways Server.
Methods to Connect to a Cloudways Server
In this guide, we will look into four methods to connect to a Cloudways server. They are:
- Using Username and Password from an SSH client
- Using the SSH key from an SSH client
- Using the built-in SSH terminal in the Cloudways dashboard
- Transferring files using SFTP
Prerequisites
Below are the prerequisites for this guide.
- A running Cloudways server
- Server details (public IP, username, password)
- SSH and SFTP client installed on your local machine
Let's get started and look into each method one by one.
Method 1: How to Connect to a Cloudways Server using Username and Password
In this method, you will connect to your Cloudways server with an SSH client. Follow the steps to connect to a Cloudways server using a username and password.
Step 1: Get your Cloudways server details
First, login to the Cloudways dashboard, and in the left-side menu bar, you will see the Server option, click on it.
You will now see your Cloudways Server with the name you assigned to it.

Once you click your server, you can find your Master credentials, which include the public IP, username, and password.

Step 2: How to Connect to the Cloudways server using an SSH client
First, you need an SSH client to connect your system to the Cloudways server.
If you are using Windows, check whether the PuTTY tool is installed. If not, install it. But Windows 11 supports OpenSSH by default in PowerShell, so you don’t need PuTTY.
If you are using Mac or Linux, your system already has OpenSSH installed, so no installation is required.
Now, open the terminal and run the following command:
ssh <username>@<public ip>Once you run the command, you will see the following output in the terminal.

It will ask for your approval for the connection. Type Yes to confirm the connection, enter the password, and press Enter.
That's it, now your Cloudways server will be remotely connected to the SSH client.
In this method, we used a username and password to connect to the server. But SSH also supports key-based authentication. Let's look at it.
Method 2: How to Connect to a Cloudways Server Using an SSH Key
In this method, we will create an SSH key pair on your local system and connect to your Cloudways server from your local machine using the SSH key.
Follow the steps to connect to a Cloudways server using an SSH key.
Step 1: Create SSH Keys
Run the following command in your terminal to create the SSH keys.
ssh-keygen -t rsa -b 4096Once done, you will have a public and private SSH key pair as shown below.

Here, id_rsa is your private key and id_rsa.pub is your public key. Now open the id_rsa.pub file, and copy its contents.
Step 2: Add the Public key to the Cloudways server
Now go to the Cloudways server. On the master credentials page, you will see a SSH Public Keys button, click it.

Give a label as you wish, then paste the content of your id_rsa.pub file, and click Submit.

Now, the public key is added to your server.
Step 3: Connect using the private SSH key
Now, go to your terminal and run the following command to connect to the server from your local system.
~/.ssh/id_rsa with your private key path if it's different. Also, update your username and the public IP address in the following command.ssh -i ~/.ssh/id_rsa <username>@<public ip>It will ask you to confirm the connection, type yes and press Enter to connect to your server, as shown below.

Now, you are connected to the Cloudways server using an SSH key. But Cloudways also provides a way to access the server directly from your browser. Let's look into it in the next method
Method 3: How to Connect to Cloudways using its Built-in Terminal
This is a very easy method.
For that, from the Cloudways dashboard, select the server you want to connect to and open its Master Credentials tab.
There, you will see Launch SSH terminal button. Double click it to launch the SSH terminal in your browser.

Once the terminal is opened, enter your username and password and press Enter to connect to the server.

Now, you can run commands on your server directly from the browser.
Till now, we have learned ways to access the Cloudways server using SSH. But what if you want to upload and download files from the server securely?
Let's look into it.
Method 4: How to Connect to Cloudways using SFTP
Before getting into the steps, you have to know this.
To use SFTP, you need an SFTP client. There are many SFTP client applications available on the internet, such as FileZilla, Nautilus, WinSCP, Cyberduck, and Transmit.
You can also use command-line tools like scp and sftp to transfer files securely.
For this example, we will use FileZilla.
Step 1: Install an SFTP Client
If you are using Ubuntu, open the terminal and run the following command:
sudo apt update -y
sudo apt install filezilla -yThen, run the following command to verify FileZilla is installed properly.
filezilla -vIf it's installed properly, you will get the version number in the output.
For other methods, refer to the official documentation.
Note: If you are using the Windows operating system, you can install WinSCP, it is one of the SFTP client tools for Windows. If you want to install WinSCP, then click here
Step 2: Connect to Cloudways Server via FileZilla
Open the FileZilla application. At the top, you will see fields for host ,username ,password port , and quitconnect.
Enter your Cloudways server’s public IP address in the Host field, and enter the username and password of your Cloudways account.
Next, set the Port number to 22, which is the default SSH port. Then click Quickconnect. FileZilla will connect to your server, and you will see a message confirming a successful connection.
On the right side, you will see your Cloudways server’s file system, and on the left side, your local computer’s file system as shown below.

You can easily drag and drop files between these sections for both uploading and downloading.
Conclusion
In this guide, I have shown four step-by-step methods to connect your cloudways server to a local machine using SSH and SFTP.
If you have any doubts about this guide, please share them in the comments! Also, if you want to learn anything specific about Cloudways, feel free to mention it.
I am happy to help you out!
If you are planning to upgrade or purchase Cloudways, use this Cloudways Promo Code to get an exclusive discount and save money.
Also, if you would like to learn how to clear the application cache in Cloudways, here is a detailed guide.