Skip to main content

How to Connect to Your WordPress Site via SSH/SFTP

Instructions for connecting to your Seravo WordPress server via secure SSH and SFTP (Linux, macOS, and Windows), setting up SSH keys, and connecting to a staging environment.

In Seravo's hosting environment, you can manage files and run command-line tools (such as WP-CLI, Composer, and Git) over a secure SSH and SFTP connection. For security reasons, Seravo does not support unencrypted FTP connections.

Prerequisites and Login Credentials

When your site is deployed at Seravo, you receive separate login credentials via email for SSH and SFTP access (these are different from your WordPress admin dashboard credentials).

You need the following four details to connect:

  • Host (Server): for example, example.fi-t.seravo.com

  • Port: a five-digit port number, for example, 12345 (note: Seravo does not use the default port 22)

  • Username: your site-specific username, for example, example

  • Password (or your personal SSH key pair)

Lost credentials or need access restrictions? If you cannot find your deployment email or would like to disable password authentication completely / restrict SSH access to specific IP addresses, please contact our customer support.

Note: We do not recommend installing third-party file manager plugins in WordPress due to security risks. Always use SFTP or SSH to transfer and manage files.

Connecting via SSH (Linux, macOS, and Windows)

Modern Linux, macOS, and Windows 10/11 operating systems include a built-in SSH client (Terminal / PowerShell / Command Prompt).

  1. Open your computer's terminal application (Terminal or PowerShell).

  2. Connect by replacing the port (12345), username, and server hostname with your own credentials:

    ssh -p 12345 [email protected]
  3. On your first connection, the terminal asks you to verify the server's fingerprint (Are you sure you want to continue connecting?). Type yes and press Enter.

  4. Enter your password (characters are hidden as you type) and press Enter.

Once logged in, you are greeted by Seravo's server banner and placed directly in your site directory (/data/wordpress/). Your public WordPress files (wp-content, wp-config.php) are located at /data/wordpress/htdocs/.

Older Windows versions: If you are using an older version of Windows without the built-in ssh command, you can use the free PuTTY client by entering the server address (Host Name), Port, and selecting SSH as the connection type.

Setting Up an SSH Key and Shortcuts (Recommended)

Using an SSH key pair is both more secure and more convenient than password authentication. Your public key (.pub) is stored on the server, while your private key remains strictly on your local computer.

1. Generate an SSH Key Pair (If You Don't Have One Yet)

First, check if you already have an existing key on your computer (ls -l ~/.ssh). If not, generate a modern ed25519 key pair:

ssh-keygen -t ed25519

Press Enter to accept the default file location (~/.ssh/id_ed25519) and optionally set a passphrase for extra security.

Security notice: Never share your private key file (id_ed25519) with anyone. Only share the public key file ending in .pub (id_ed25519.pub).

2. Copy Your Public Key to the Server

Linux and macOS:

ssh-copy-id -i ~/.ssh/id_ed25519.pub -p 12345 [email protected]

Windows (PowerShell): Since Windows does not include ssh-copy-id, copy your public key to the server with a single command:

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh -p 12345 [email protected] "cat >> ~/.ssh/authorized_keys"

Manual addition on the server (e.g., an external developer's public key):

If you received a public key as plain text (ssh-ed25519 AAAA...), log into the server via SSH and append it directly to ~/.ssh/authorized_keys:

echo "PASTE-PUBLIC-KEY-HERE" >> ~/.ssh/authorized_keys

3. Save the Connection in ~/.ssh/config

You can simplify logging in to a single short command by adding your connection details to ~/.ssh/config on your local machine (C:\Users\YOUR_USERNAME\.ssh\config on Windows):

Host example
HostName example.fi-t.seravo.com
User example
Port 12345
IdentityFile ~/.ssh/id_ed25519

You can now connect simply by running:

ssh example

Connecting via SFTP (FileZilla and Command Line)

If you prefer managing files visually, use an SFTP-compatible client (such as FileZilla, Cyberduck, or WinSCP).

Setting / Field

Value

Protocol

SFTP - SSH File Transfer Protocol

Host

example.fi-t.seravo.com (or sftp://example.fi-t.seravo.com)

Port

Your site's five-digit SSH port (e.g., 12345)

Logon Type

Normal (password) or Key file (SSH key)

User

Your site's SSH username

A view of the FileZilla user interface.

FileZilla quickconnect bar configured for an SFTP connection to a Seravo server.

Transferring Files via the Command Line (scp)

You can also transfer files directly from your terminal using scp (note the uppercase -P flag for the port):

# Upload a file from your computer to the server
scp -P 12345 local-file.zip [email protected]:/data/wordpress/

# Download a file from the server to your current local directory
scp -P 12345 [email protected]:/data/wordpress/file.sql .

Connecting to a Staging Environment (Shadow) via SSH/SFTP

You connect to your site's staging environment (shadow) using the exact same hostname, username, and password as your production site—only the port number changes.

You can find the port number for your shadow environment in the WordPress admin dashboard under Tools → Site Status → Shadows.

Common Issues and Troubleshooting

  • Connection refused or Operation timed out: Verify that you specified your site's custom five-digit port number (-p 12345). Default port 22 is not used.

  • REMOTE HOST IDENTIFICATION HAS CHANGED warning: The server cluster has been upgraded or your site was migrated to a new server, changing the host fingerprint. Remove the old entry from your computer by running ssh-keygen -R "[example.fi-t.seravo.com]:12345" and reconnect.

  • Permissions 0644 for '~/.ssh/id_ed25519' are too open (UNPROTECTED PRIVATE KEY FILE): SSH rejects a private key if other local users have read permissions. Fix the file permissions on your computer with chmod 600 ~/.ssh/id_ed25519 and try connecting again.

  • Permission denied (publickey,password): Double-check your username and password. If password authentication has been disabled on your site for security reasons, ensure you are authenticating with the authorized SSH key (-i ~/.ssh/id_ed25519).

  • Where can I find the .htaccess file? Seravo uses the nginx web server instead of Apache, so .htaccess files are not used. Custom redirects and server rules are placed in /data/wordpress/nginx/. For more information, see How Do I Add Custom Configurations to the Web Server.

See Also

With SSH and SFTP access, you can securely manage your site's files, database, and developer tools. If you have misplaced your SSH credentials or need assistance configuring connections or access restrictions, our customer support team is happy to help at [email protected].

Did this answer your question?