Skip to content

Cron and access (FTP/SSH) ​

Use the Cron & access page to schedule automatic commands (cron jobs), create FTP accounts, and manage SFTP/SSH access: ports, password, keys, and the IP allowlist.

The page has three cards: Cron jobs, FTP accounts, and SFTP / SSH keys.

Cron jobs ​

A cron job runs a command on a schedule, e.g. WordPress wp-cron.php, a cleanup script, or a data sync.

Creating a cron job ​

  1. On the Cron jobs card, click Create Cron.

  2. Enter the Schedule (cron format), or click one of the presets:

    PresetExpression
    Every 5 minutes*/5 * * * *
    Every hour0 * * * *
    Daily at 02:000 2 * * *
    Weekly (Sunday 03:00)0 3 * * 0
  3. Enter the Command, e.g.:

    bash
    php ~/public_html/wp-cron.php
  4. Optional: enter a Note (optional).

  5. Make sure Enabled is ticked.

  6. Click Save.

The cron schedule format has five fields: minute, hour, day of month, month, day of week (0 = Sunday). Schedule times use server time ("times are server time").

The number of cron jobs is limited by your package. When the limit is reached, the Create Cron button is disabled with the note "Cron job limit reached".

How cron jobs run ​

  • The command runs as your account's user, with your home folder as the working folder.
  • The command runs in an isolated environment: only your home folder is visible and writable, and the system is read-only.
  • PHP, git, and the MySQL client still work.

Managing cron jobs ​

The cron job table shows the Schedule, Command, status Active or Paused, Last run, and Exit code.

ActionWhat it does
Run nowRuns the command now and shows its exit code.
EditChanges the schedule, command, note, or enabled state. Untick Enabled to pause without deleting.
⋯ › Run historyShows the last 20 runs: time, duration, exit code, and command output.
⋯ › DeleteDeletes the cron job.

Exit code 0 means success. Other codes are marked red, and timeout means the command was stopped because it ran too long. Click the time in the Last run column to open the history.

WordPress and cron

For busy WordPress sites, run wp-cron.php from cron every 5 to 15 minutes, then turn off WordPress's built-in cron with define('DISABLE_WP_CRON', true); in wp-config.php. The result is more stable and uses fewer resources.

WARNING

Cron jobs that run too often (e.g. every minute) with heavy commands can use up the account's CPU and process limits. Check the Limit Explainer if your site slows down.

FTP accounts ​

FTP accounts give file access to a specific folder, e.g. for a designer or developer.

Prefer SFTP

FTP is not encrypted unless your FTP app uses TLS (FTPS). When the server supports FTPS, the connection info shows "FTPS (TLS)". For the best security, use SFTP.

Creating an FTP account ​

  1. On the FTP accounts card, click Create FTP.
  2. Enter the Login. The login is saved with your account prefix.
  3. Enter the Folder (relative to home). Default public_html. The FTP user can only access this folder.
  4. Enter a Password, or click Generate. At least 10 characters.
  5. Choose the Access: FTP + Web Disk (default), FTP + Web Disk (read-only), FTP only, Web Disk only, or Web Disk only (read-only). "Web Disk only" is a Web Disk account that cannot log in over FTP. See Web Disk.
  6. Click Create.

The number of FTP accounts is limited by your package. If the card shows "FTP is not enabled for this account.", FTP is not active for your account.

Managing FTP accounts ​

  • Password: changes the FTP account password.
  • ⋯ › Change access: changes FTP and Web Disk access of the login. It applies to new connections.
  • ⋯ › Delete: deletes the FTP account. Files in its folder are not deleted.

The Access column shows each login's access. When your hosting provider has turned on Web Disk, a Web Disk box below the table shows the address for opening your files as a network drive. See Web Disk.

SFTP and SSH keys ​

SFTP is the secure way to transfer files, and SSH gives shell access when your package allows it. Both sign in as your account's user.

Connection info ​

Below the SFTP / SSH keys card is the SFTP / SSH connection info:

FieldShows
HostThe SFTP/SSH server address.
PortThe SFTP/SSH port for client accounts. Your hosting provider may use a port other than 22, so always use the port shown here.
UserYour account username, e.g. jane.
FTPThe FTP port, when FTP is active.

The mode is shown next to it: SFTP and SSH shell, or SFTP only (no shell). With SFTP only (no shell) your package only allows file transfer. Shell login, interactive ssh, scp, and rsync over a shell are not available.

Isolated environment

SSH and SFTP sessions run in a jail: only your home folder is visible and writable. Port forwarding and tunnels are not allowed.

SFTP/SSH password ​

By default only SSH keys can sign in. If your hosting provider allows password login on your server, the Password login box lets you set a password for SFTP/SSH:

  1. Click Set password (or Change password when one is already set).
  2. The SFTP/SSH password dialog suggests a random password. Click Generate for another one, or type your own: at least 12 characters with lowercase, uppercase, and a digit.
  3. Copy the password now. It is not shown again.
  4. Click Save.

The box then reads "A password is set. You can sign in with it or with an SSH key." Click Remove to delete the password, so only SSH keys work again. This password is separate from your panel password.

If the box reads "Password login is turned off on this server; use an SSH key.", your hosting provider has not allowed passwords. Use an SSH key, or ask your provider.

Allowed IPs ​

The Allowed IPs box limits who can sign in over SFTP/SSH:

  1. Enter one IP address or range per line, e.g. 203.0.113.7 or 198.51.100.0/24.
  2. Click Save.

Only those IPs or ranges can sign in to your account over SFTP/SSH, with a key or a password. Leave the box empty to allow any IP. You can add up to 50 entries. FTP accounts are not affected.

WARNING

Check your current IP before you save a list. If your IP changes (e.g. on a home connection), you are locked out of SFTP/SSH until you update the list in the panel.

Adding an SSH key ​

  1. Create a key pair on your computer if you do not have one:

    bash
    ssh-keygen -t ed25519
  2. Copy the content of the public key, the ~/.ssh/id_ed25519.pub file.

  3. On the SFTP / SSH keys card, click Create SFTP.

  4. Enter a Name, e.g. laptop.

  5. Paste the public key into Public key. The key starts with ssh-ed25519 or ssh-rsa.

  6. Click Add.

The table shows the Name, Type, and Fingerprint of each key.

DANGER

Never paste a private key (id_ed25519 without .pub). Only public keys may be uploaded to the panel.

Signing in with SFTP or SSH ​

Examples with the host and port from the connection info:

bash
sftp -P 22 jane@srv1.example.com
bash
ssh -p 22 jane@srv1.example.com

Replace the port and host with the connection info in the panel. In apps such as FileZilla or WinSCP, choose the SFTP protocol and use your private key file, or the SFTP/SSH password if you set one.

Revoking a key ​

Click Revoke on the key row and confirm. Revoke a key right away if a laptop or device is lost.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.