This guide will show you how to securely share access to your site using SSH, so that you can migrate your site from Hetzner to WordPress.com.
📌
SSH access requires one of the following Hetzner plans: Webhosting L, Webhosting XL, Managed Server, and Cloud plans.
In this guide
Have a question?
Ask our AI assistantSecure Shell (SSH) is a secure way for us to connect to your current host and copy your site safely. We use it to transfer a copy of your site’s content, media, plugins, themes, and database over an encrypted connection. Your existing site will stay online and unchanged during the migration, so visitors won’t notice any disruption until you’re ready to update your domain name to the newly-migrated site.
To find the SSH details for your site, take the following steps:
- Log in to your Hetzner account.
- Select the server you want to migrate.
- Locate the Public IP address and SSH port (usually 22) under the Access section.
- If your server uses a firewall, make sure port 22 is open.
- Copy the following details from the SSH Details panel and paste onto WordPress.com:
- IP into the Server address field.
- Port into the Port field.

- Click the “Verify server address” button.
In a few moments, we’ll validate if the details are correct for what we need to migrate a copy of your site to WordPress.com. If the details cannot be validated, please double check you have pasted the correct information or contact your host for support in obtaining the correct details.
Next, you’ll need to share your SSH details to grant WordPress.com secure access to your site to begin the migration.
- In the Share SSH access section on WordPress.com, choose the SSH key authentication method.
- Open a text editor (like Notepad) and copy the key from the SSH key section to the file.
- Save the file as
migration_key.pub. Note where you saved the file. - Open your command line interface (CLI) like Terminal or Command Prompt.
- Move the key file to your
.sshdirectory (create the directory if it does not exist):
mkdir -p ~/.ssh
mv /path/to/migration_key.pub ~/.ssh/
- Copy the public key to your server by running:
ssh-copy-id -i ~/.ssh/migration_key.pub username@your.server.ip
Replace:
usernamewith your server usernameyour.server.ipwith your server’s IP address
- Enter your server user’s password when prompted. The key will automatically be added to the server’s
~/.ssh/authorized_keysfile. - Back on WordPress.com, click the Continue button.
