All Collections
Managing Your Rapyd Account
Tools
File Access
How to use SFTP & SSH for Secure Remote Access
How to use SFTP & SSH for Secure Remote Access
Rapyd Team avatar
Written by Rapyd Team
Updated over a week ago

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

Generating a Key Pair for SFTP & SSH

  1. Select a Site on the Rapyd Dashboard

  2. Navigate to Tools > File Access in the Rapyd Dashboard

  3. Go to the SFTP & SSH tab, which is the default, as it is more secure.

  4. Click the Create Key pair button.

  5. Provide a name for your key pair.

  6. After creating the key pair, you should see it listed in the dashboard.

The key pair consists of two password files: one stored on the server and one you need to download to your computer. This makes it more secure, as it's tied to your device.

Importing a Key Pair from an SSH Client

  1. Download and install an SSH client, such as PuTTY for Windows or OpenSSH for macOS and Linux.

  2. Open the SSH client and access the key generator (e.g., PuTTYgen for PuTTY).

  3. Select the key type (usually RSA) and key length (2048 or 4096 bits).

  4. Click the Generate button and follow the instructions to generate a public and private key pair.

  5. Save the private key (e.g., "private_key.ppk") on your computer in a secure location.

  6. Save the public key (e.g., "public_key.pub") on your computer.

  7. Navigate to Tools > File Access on the Rapyd dashboard

  8. Go to the SFTP & SSH tab, which is the default, as it is more secure.

  9. Click on the Import Key pair button. Enter a Key Pair Name

  10. Upload the Public Key file (e.g., "public_key.pub") and click Import Key.

  11. After creating the key pair, you should see it listed in the dashboard.

Accessing files using FileZilla SFTP

  1. Download an SFTP client, such as FileZilla

  2. Go to Edit > Settings > SFTP > Add Keyfile

  3. Upload the Private key you generated in previous steps (e.g., "private_key.ppk") and click OK.

  4. Enter the following information:

    1. Host: Your server's hostname or IP address

    2. User: Your Rapyd username

    3. Port: The SFTP port number (usually 22)

  5. Click Connect, or QuickConnect, to establish an SFTP connection to your server. Once connected, you can browse, upload, and download files on your server.

Using SSH remote access

  1. Open the terminal (macOS/Linux) or command prompt (Windows).

  2. For Windows users, use the PuTTY application to access SSH.

  3. Enter the following command:

    ssh -i /path/to/private_key.ppk username@hostname

  4. Replace "/path/to/private_key.ppk" with the path to your private key file, "username" with your Rapyd username, and "hostname" with your server's hostname or IP address.

  5. Press Enter to establish an SSH connection to your server.

  6. Once connected, you can execute commands on your server via the command line.

Conclusion

By following the steps outlined in this guide, you can set up secure remote access to your server using SFTP and SSH. These protocols provide 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 or SSH client software, so consult the relevant documentation for specific guidance.

Did this answer your question?