Skip to content

Terminal ​

The Terminal page gives you an SSH shell right in your browser, without an SSH app. The terminal is handy for running commands such as php, git, or the MySQL client.

When this menu is available ​

The Terminal menu only appears when both conditions are met:

  1. your hosting package includes the SSH feature;
  2. SFTP/SSH access for your account is on.

The account must also be active. If a condition is not met, the page shows Terminal is not available with the reason:

MessageMeaning
"Your hosting package does not include SSH/terminal access."The package does not include SSH.
"SFTP/SSH access is turned off for your account."Your hosting provider turned off SFTP/SSH access for the account.
"Your account is …; the terminal is only available for active accounts."The account is not active, e.g. suspended.

Contact your hosting provider to turn it on.

Opening a terminal session ​

  1. Open Terminal from the sidebar.
  2. Click Connect.
  3. Wait for the status to change from Connecting… to Connected.
  4. Type commands in the terminal.

The status, username, host, and session duration are shown above the terminal.

Terminal buttons ​

ButtonWhat it does
ClearClears the terminal screen.
CopyCopies the selected text, or the whole terminal content when nothing is selected.
FullscreenOpens the terminal full screen. Press Esc to leave.
DisconnectCloses the session.
ReconnectOpens a new session after disconnecting.

Keyboard shortcuts ​

ShortcutWhat it does
Ctrl + CCancel command: stops the running command.
Ctrl + LClear screen: clears the screen.
Ctrl + DExit shell: closes the session.

Isolated environment ​

The shell runs in an isolated environment (jail):

  • only your home folder is visible and writable;
  • the system is read-only;
  • /tmp is private to your session;
  • other accounts' processes are not visible;
  • the account's CPU, RAM, and process limits still apply.

PHP, git, and the MySQL client (through the local socket) still work. Commands that need root, such as installing system packages, cannot run.

Session limits ​

The Session details panel shows session information:

ItemValue
SSH userYour account username
HostYour account's server
Account typeIsolated account
Idle timeout30 minutes
Maximum session time4 hours
AuditSession open and close are logged

The session closes automatically after 30 minutes without activity or after 4 hours. Click Reconnect to open a new session.

Long-running commands

Commands that take a long time stop when the session closes. For long or recurring tasks, use a cron job.

Examples ​

Check the PHP version:

bash
php -v

List the website folder:

bash
ls -la ~/public_html

Check the website folder size:

bash
du -sh ~/public_html

See also ​

MoorCP Shared, a shared hosting panel for server fleets.