Docs apolopanel.com ↗ Start trial ↗
Documentation Hosting

Files, FTP, SSH and cron

Besides the file manager in the panel, an account reaches its files over SFTP or FTP and the server over SSH or the browser terminal, and runs commands on a schedule with cron jobs. Each is switched on per account.

Hosting users find all of it under Access; administrators turn the features on per account or package (Packages) and see every account's settings on its page. The file manager itself is described under Websites.

The Access page with SFTP, FTP and SSH
Access: the connection details for SFTP, FTP and SSH, the password and the SSH keys.

SFTP

SFTP is file transfer over SSH, encrypted, on the server's SSH port. Use any SFTP client (FileZilla, WinSCP, Cyberduck, or sftp on the command line) with the host, port, username and password shown under Connect.

  • SFTP only: an account with SFTP but without SSH can't open a shell; it reaches only its own files. Other accounts can't open its website folders.
  • The password for SFTP, FTP and SSH is the account's system password, set with Reset password (New SFTP and FTP password). Clients that saved the old password stop connecting until you enter the new one; SSH keys aren't affected. With two-factor sign-in on for the panel, the Access page reminds you that SFTP, FTP and SSH use this separate password, which two-factor doesn't cover.
  • Security hardening can keep SFTP accounts inside their home folder (see Security hardening).

SSH

With SSH access on, the account can sign in to a shell on the server, with Composer, WP-CLI, Git, Node.js and the other tools, as its own user, in its home folder and within its plan's limits. The command to connect is shown under Connect from a terminal, for example:

ssh ana@server1.example.com -p 22

SSH keys

Add SSH key takes a public key (the .pub file, never the private one), with a name. Keys are safer than passwords and don't expire. Remove key takes it away at once; deploy jobs that use it then fail.

Password login

Allow password login decides whether SSH and SFTP accept the password; it is one switch for both, shown under SSH and under FTP / SFTP. Off: SSH and SFTP sign in with an SSH key only. It is off by default: bots try passwords all day, and keys stop them. Turn it on when you need it, and off again afterwards.

The ports of SSH (for administrators and for accounts) are set under Network; see SSH ports.

FTP

FTP is for old tools that can't use SFTP. It runs on port 21 with the passive data ports 30000-30100, encrypted with explicit TLS (FTPES) when the FTP app supports it, with the same username and password as SFTP.

  • Plain FTP can be turned off per account; SFTP covers the same use.
  • Under Security hardening the administrator can require TLS for every FTP sign-in, so FTP passwords never cross the network unencrypted (off by default, for old FTP tools without TLS); see Security hardening.
  • In FileZilla choose "Require explicit FTP over TLS" and passive mode.

FTP accounts

FTP accounts are extra logins of an account, each with its own username (name@domain, the domain being one of the account's) and password, locked to one folder, for example for a web designer, a scanner or a camera that uploads pictures.

  1. Add FTP account: the name and domain, the Folder (empty means the whole home folder; a folder that doesn't exist yet is made) and a password (empty: the panel makes a strong one and shows it once).
  2. The FTP account signs in straight into its folder and can't leave it. What it uploads belongs to the account.
  3. Change the folder, set a New password or Delete it; deleting keeps the folder and its files.

FTP accounts use FTP on port 21 with TLS (FTPES), not SFTP. Packages limit how many an account may have.

The terminal

Terminal opens a shell of the account in the browser, like SSH: commands run as the account, in its home folder and within its plan's limits. It needs the account's SSH access. The session ends when the panel session ends or the shell exits; open a new terminal to continue.

Cron jobs

Cron Jobs (or a website's Cron Jobs tab) runs commands on a schedule, like WordPress tasks, backups or Laravel's scheduler.

The Cron Jobs page
Cron jobs with their schedule, website, last run and status.
  • Add cron job: the command, the website it runs for (or No website (home folder)), and How often: every minute, 5 or 15 minutes, hour, day, week or month, or Advanced with the five fields (minute, hour, day of month, month, day of week). Schedules follow the panel's time zone.
  • A job for a website runs with that website's PHP version (php is the website's), in its folder, as the account.
  • Run now runs it at once and shows its Output; Last run shows when and how it ended. Pause job stops it for a while, Enable job starts it again.
  • The jobs of a stopped or suspended website (and of a suspended account) are paused until it runs again.

Examples:

# Laravel's scheduler, every minute
php artisan schedule:run
# a WordPress task with WP-CLI, every hour
wp cron event run --due-now

For WordPress, the panel can run wp-cron on a fixed schedule for you; see WordPress.

Privacy between accounts

Each account is its own system user. Accounts can't pass through each other's home folders, and they see only their own processes, not who else signed in to the server, the mail queue or the kernel log. Nginx and OpenLiteSpeed follow a link only when the link and its target have the same owner. See Security.

If you can't connect

  • "Permission denied (publickey)": password login is off; add your key under SSH keys, or turn Allow password login on.
  • SFTP works, SSH doesn't: the account has SFTP only; SSH must be turned on for it.
  • FTP connects but lists nothing: open the passive ports 30000-30100 in your provider's firewall, and use passive mode.
  • Connection refused: check the port (the SSH port may be changed) and that your address isn't blocked by BEDEM after failed attempts.

Something missing or unclear? Ask support or report a bug.