MODX Cloud provides SFTP (SSH File Transfer Protocol) and SSH (Secure Shell) access to your Cloud instances for more advanced work with files and the command line. SSH is available on paid plans.
SSH connects you to your MODX Cloud server with a Secure Shell client such as Terminal on macOS and Linux, or Windows Terminal, PowerShell or PuTTY on Windows. From there you can run commands and tools such as curl, tar, crontab and mysql.
SFTP connects you to the same server to manage and upload files, images and other assets, using a client such as FileZilla (Windows, macOS, Linux), Cyberduck (Windows, macOS) or Transmit (macOS). Many development tools, including Visual Studio Code, PhpStorm, Sublime Text and Adobe Dreamweaver, can also connect over SFTP.
Before Using SSH and SFTP
From November 30, 2026, all SSH and SFTP connections to MODX Cloud use SSH keys. Passwords are not accepted.
There are two ways to put a key in place, and which one you use depends on who needs access.
For yourself and the people in your MODX Cloud account, add a public key to your user profile. It then works on every Cloud your account has permission to access, present and future, with nothing to set up per Cloud. See Use SSH Keys to Access Clouds.
For a contractor or collaborator who does not have a MODX Cloud user account, an account owner can add their public key to a single Cloud. See SSH & SFTP Using SSH Keypairs on Individual Cloud Instances.
Profile keys are the better choice wherever they apply. Access follows the permissions the person's account already holds, and it ends the moment their access does. A key added to a single Cloud stays there until someone removes it by hand.
Getting Connected
The SSH/SFTP details for each of your Clouds are at the bottom of its Cloud Edit page.
From the Clouds page, find the Cloud you want to connect to. Click the actions cog at the right of the grid and choose Edit.
At the Cloud Edit page, scroll to the bottom, past the General Information section, to the SSH/SFTP section.
Make Your First Connection
Your Cloud's SSH username looks like c0000, and your host is the Cloud's internal URL, such as abcde123.modx.dev. Both are in the SSH/SFTP section you just opened. You can also use any custom domain assigned to the Cloud in place of the internal URL.
From Terminal on macOS or Linux, or Windows Terminal, PowerShell or PuTTY on Windows:
ssh c0000@abcde123.modx.devIf your key is in place, you connect straight away with no password prompt. The first time you connect you are asked to confirm the server's fingerprint—answer yes, and it is remembered.
In an SFTP client, the same connection is made through the client's own dialog. The example below shows FileZilla's Site Manager. Set Protocol to SFTP, Logon Type to Key file, User to your Cloud's SSH username, and browse to your private key under Key file.
If you are prompted for a password, your connection is not using your key. See If You Can't Connect, below.
Pointing Other Clients at Your Key
Every application you connect with needs to know where your private key lives on your computer. The private key is the file without the .pub extension—for example ~/.ssh/id_rsa, not ~/.ssh/id_rsa.pub. The .pub file is the one you paste into your MODX Cloud profile. Never upload, paste or email the private key.
Applications call this setting a key file, identity file, private key or certificate. Wherever the application would otherwise ask for a password, give it the path to that file instead.
FileZilla. To use one key for every site rather than setting it per site, open Settings, select Connection → SFTP, click Add key file and choose your private key. FileZilla offers to convert the key to its own format if needed—accept, and it writes a converted copy without altering the original.
Cyberduck. In the Open Connection panel, choose SFTP (SSH File Transfer Protocol), enter the server and your Cloud's SSH username, leave the password empty, then use the SSH Private Key menu to select your key file. Choose "Choose…" from that menu if your key is not listed.
Transmit. In the server details for a new or existing favourite, set the protocol to SFTP and change Password to Key in the authentication menu, then select your private key file.
WinSCP. WinSCP uses PuTTY's key format rather than OpenSSH's, so convert your key first. Open PuTTYgen, which installs alongside WinSCP, choose Conversions → Import key, select your OpenSSH private key, then click Save private key to write a .ppk file. Keep the original. In WinSCP, open the site in Advanced Site Settings, go to SSH → Authentication, and set the Private key file to the .ppk you saved.
Code editors. SFTP extensions take the key path in their configuration file. For the common Visual Studio Code SFTP extension, remove the password entry from sftp.json and add "privateKeyPath": "/Users/you/.ssh/id_rsa". Use the full path rather than ~, which many extensions do not expand. PhpStorm and other JetBrains IDEs set this under Deployment → Connection, with Auth type set to Key pair.
Database clients. See Remote Database Management, which covers the SSH tunnel and your MySQL credentials together.
Use One Key for Every Cloud
If you work across several Clouds, set your key once in your SSH configuration file instead of naming it in every client. Add the following to ~/.ssh/config on macOS or Linux, or %USERPROFILE%\.ssh\config on Windows:
Host *.modx.dev *.modxcloud.com
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
AddKeysToAgent yesAfter that, ssh c0000@abcde123.modx.dev connects with no further options, and so do scp, rsync and git. Many graphical clients read this file as well, so they pick up the setting without being configured one by one.
To name a key for a single command instead:
ssh -i ~/.ssh/id_rsa c0000@abcde123.modx.devFor rsync, which is the fastest way to move a site in or out of MODX Cloud:
rsync -azvvP -e "ssh -i ~/.ssh/id_rsa" ./ c0000@abcde123.modx.dev:/www/See Importing a MODX Site with Rsync and Exporting a Website from MODX Cloud for the full migration steps.
If You Can't Connect
You are asked for a password. Your client is not using your key. Check that it points at the private key file rather than the .pub file, and that the matching public key is on your MODX Cloud profile.
UNPROTECTED PRIVATE KEY FILE. SSH refuses to use a private key that other users on your computer can read. On macOS or Linux:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsaToo many authentication failures. Your SSH agent is offering every key it holds, in its own order, and the server closes the connection after a set number of failed attempts—so the right key may never be tried. Add IdentitiesOnly yes to the matching Host block in your SSH configuration file, as above, or add -o IdentitiesOnly=yes to a single command.
Permission denied (publickey). The server did not accept any key you offered. Confirm that the public key on your profile matches the private key your client is using, and that your account still has access to that Cloud.
To see which key is actually being offered:
ssh -v c0000@abcde123.modx.devLook for Offering public key naming your key file, followed by Server accepts key. More than one Offering line means other keys are being tried first.
If you are still stuck, see Troubleshooting SSH and SFTP Connections to Clouds, or use the Help button inside the MODX Cloud Dashboard to contact our support team.