Skip to content
Impulse SoftwareDOCS
Get modules

ImpulsePlesk

Verified for ImpulsePlesk 1.9.2 ·

SSH access

The SSH tab lets a customer open command-line access to their hosting space, from the addresses they allow and nowhere else, with the shell you permit. On your side, Operations → SSH access sets the rules — which shells, keys only or not, how long an unused address lives — and can restrict port 22 on each server to the allowed addresses plus your own. Nothing here needs SSH from your WHMCS server: it runs over Plesk’s API and the file service.

Requirement Where
The file service, 1.6.0 or later It applies the port-22 rule in Plesk’s firewall, writes the keys-only policy, manages the customer’s keys and reads login records.
Plan flag SSH access; Full shell (bash) over SSH for the full shell Plans & Products. Both are off on a new plan unless you tick them. Max SSH addresses (default 3) caps the addresses a customer may allow.
Customers may turn on SSH access Operations → SSH access, off by default. Off hides the SSH tab everywhere.

SSH access — Command-line access to your hosting space, from the addresses you allow.

  • Shell. Off, Restricted shell (recommended) or Full shell (bash), then Save. The restricted shell works inside the customer’s own hosting space and the tab lists the tools it offers, read from the server. The full shell appears only when the plan’s box is ticked and you offer it. With no address allowed yet the card says Nobody can connect yet: allow an address below.
  • Allowed addresses — Only these addresses can open an SSH connection to your hosting space. The customer adds an IP address (pre-filled with their current one) with an optional label and clicks Allow this address, or clicks Allow next to the addresses the page detected for their browser. A network such as 198.51.100.0/24 is accepted; nothing broader than a /16 (IPv4) or /48 (IPv6) is. Each row shows when it was added and last used, and Remove takes it out.
  • SSH keys — paste the public half of a key made on their computer, with an optional name, and click Add key; a pasted private key is refused with a plain explanation. Keys live in the subscription user’s authorized_keys, written as that user.
  • How to connect — host, port 22, username, and either Sign in with one of your SSH keys above (keys only) or Show password, which reveals the hosting password after the customer confirms their client-area password.

An address that hasn’t signed in for the number of days you set is removed automatically. If the last one goes, SSH access is turned off and the customer is emailed (the Managed Web Hosting - SSH Address Removed template). The tab says so under the address list.

SSH access panel:

  • Customers may turn on SSH access — the master switch.
  • Shells customers may choose — the restricted shell, the full shell, or both. The full shell is also gated by the plan.
  • Keys only (recommended) — on by default. Saving a change pushes the policy to every server with a file service: a marked block at the end of the SSH daemon’s configuration turns password and keyboard-interactive sign-in off for hosting users, tested before it is reloaded and put back if the daemon refuses it. Customers then see SSH on this server accepts keys only and no password row.
  • Remove an address after this many days without a sign-in — default 30.
  • Management addresses (always allowed on port 22) — yours. Add them before any server restricts port 22; the page warns while the list is empty.
  • Trusted proxies, Address detection, IPv4 / IPv6 — how the customer’s own address is detected behind a proxy or load balancer.
  • Trust allowed addresses in the login-attempt protection — adds them to Plesk’s fail2ban trusted list. Allow the addresses in the malware agent — queues the same for Imunify360.

Port 22 on each server shows, per server, whether port 22 accepts Allowed addresses only or Every address, and the state of the rule (Restricted · N addresses, Open to every address, Not applied, Failed). Restrict port 22 turns the restriction on and applies it; Stop restricting opens the port to every address again; Apply now rewrites the rule from the current addresses — every active subscription’s allowed addresses on that server, plus your management addresses — and confirms it in Plesk’s firewall. A rule the panel can’t confirm is reverted by the panel itself, and the page says The server’s rule is as it was. Restricting is refused while you have no management address on file.

The ssh_access_sweep cron runs every hour. It reads the server’s login records, removes allowed addresses that haven’t signed in within the idle period, turns the shell off on a subscription left with none (and sends the email above), re-applies the port-22 rule on servers whose addresses changed, and retries servers whose last apply failed.

A suspended service’s addresses leave the rule the next time that server’s rule is applied; suspending or terminating a service does not itself change its shell or addresses.

Changes are recorded in ImpulseCore’s audit log for the module: ssh.enabled, ssh.disabled, ssh.address_removed, ssh.rule_applied, ssh.rule_failed, ssh.policy_applied and ssh.policy_failed, each naming the server or service.