This guide will show you how to securely share access to your site using SSH, so that you can migrate your site from DigitalOcean to WordPress.com.
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 DigitalOcean Control Panel and select your WordPress site.
- Copy the IP address that is displayed here and paste it as your server address on WordPress.com:

- Enter 22 in the Port box.
- 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.
- Click the copy icon in the top right to copy the public key to your computer’s clipboard:

- 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.