Skip to main content
All CollectionsWebsite ManagementToolsFile Access
How to use SFTP for Secure File Transfer
How to use SFTP for Secure File Transfer
Rapyd Team avatar
Written by Rapyd Team
Updated over 2 months ago

Secure remote access is vital to protect your files and data while transferring them to and from your server. SFTP is a secure protocol that provides an additional layer of security over standard FTP. This guide will walk you through the process of setting up SFTP, importing key pairs, and connecting to your server using this protocol.

Now we will see how to generate an SSH key pair from our dashboard but if you already have a key pair available on your computer and would like to use it instead, scroll down to Importing an Existing Public Key.

Generating a Key Pair for SFTP & SSH

1. Go to the SFTP & SSH management area for your site

To do this, follow these steps:

  1. Log into the Rapyd Dashboard

  2. Click the site you want to work on

  3. Click Settings > File access

  4. Click the SFTP & SSH tab

2. Click the Create key pair button

This will open a modal window that prompts you to create a name for your key pair. The key pair name must be at least 10 characters in length. When you have added a name, click the Create button to proceed.

When you click the Create button, the private key will be downloaded automatically, while the public key will be visible in the Public keys section of the File access area.

The key pair consists of two files: one is stored on the server (public key), and the other (private key) is stored on your computer. This adds an extra layer of security since only devices with the corresponding private key can authenticate.

If you are looking to upload an existing public key instead of generating a new one, check the following steps on how to import an existing public key. Otherwise, scroll down to Connecting to my Rapyd Server using FileZilla.

Importing an Existing Public Key

1. Go to the SFTP & SSH management area for your site

To do this, follow these steps:

  1. Log into the Rapyd Dashboard

  2. Click the site you want to work on

  3. Click Settings > File access

  4. Click the SFTP & SSH tab

2. Click the Import key pair button

This will open a modal window that prompts you to create a name for your key pair. The key pair name must be at least 10 characters in length.

3. Upload or paste your public key

Select the option that you prefer in the dropdown. You can either upload a .pub file or paste your public key's contents. When your public key is uploaded, you can click Import to continue.

When you click the Create button, the public key will be visible in the Public keys section of the File access area.

Connecting to my Rapyd Server using FileZilla

  1. Download FileZilla from here and install it

  2. Open FileZilla and go to File > Site Manager

  3. Click New Site and provide a name

  4. In the General tab click Protocol and select SFTP - SSH File Transfer Protocol

  5. From the Rapyd Dashboard, copy the hostname displayed as 'HOST' under the SFTP/SSH tab, and paste it into the Host field in FileZilla

  6. Paste the port number (also available in the Rapyd Dashboard) into the 'Port' field.

  7. For Logon Type, select Key file. Then click Browse, open the private key you downloaded earlier (or your existing key) and click Ok

  8. At this point, you can open a connection by clicking the down-arrow icon next Site Manager and selecting the new host:


    If you see a password prompt, leave it blank and click Connect.

    Note: Remember that your site files are located in "/var/www/webroot/ROOT". If FileZilla shows a different directory, you can paste this path into the Remote site field and press Enter.

Transferring Files

Once you've opened a connection to your Rapyd server and can see your files in the Remote directory tree (on the right-hand side of the screen), you can navigate your local files using the Local directory tree (on the left-hand side). To transfer files, simply select the ones you need from either of the lower views, then drag and drop them into the other view:

Conclusion

By following the steps outlined in this guide, you can set up secure remote access to your server using SFTP. This protocol provides a higher level of security, reducing the risk of unauthorized access and data breaches. As a result, your files and data will be better protected when transferring them to and from your server. Remember that the exact steps might differ depending on your SFTP client software, so consult the relevant documentation for specific guidance.

Did this answer your question?