Claude Code SSH hosting: let an AI tool work on your site

By Noiz / 19th October 2026 | 9 min

An AI coding tool such as Claude Code can read your site's files, search its logs, write code and upload changes, if it can reach your hosting over SSH. sPremium includes SSH access limited to your own hosting account, so the tool sees your own subscription and nothing else on the server. This Claude Code SSH hosting guide gives the tool a key of its own, keeps it asking before every command, and sets up the safe working pattern: the tool works on a copy on your computer, and changes reach the live site through Git or a reviewed upload.

Before you start

  • An sPremium plan. sLegacy has no SSH; see the closing section.
  • Claude Code on your computer. It needs macOS 13 or later, Windows 10 version 1809 or later, or Ubuntu 20.04 or later, with at least 4 GB of memory, and a paid Claude plan or an Anthropic Console account. The free Claude plan does not include Claude Code.
  • A recent backup. See our guide to backing up before you let an AI change anything. For WordPress, a staging copy in WP Toolkit is better still, and the tool should work there first.

Last reviewed: 19 October 2026, against the current Claude Code release and Plesk Obsidian on Noiz sPremium hosting.

Official Documentation Reference

What does the SSH shell give the tool?

The shell on sPremium is deliberately small. Knowing what it is for saves the tool from guessing, and saves you from approving commands that cannot work.

Works over SSH Use the Plesk panel instead
Reading and editing files: ls, cat, grep, head, tail, less, vi WordPress updates, plugins and themes: WordPress (WP Toolkit)
Copying, moving and packing files: cp, mv, tar, zip, unzip Git deployment: Git under the domain
Uploading and downloading: SFTP and scp Node.js applications: Node.js under the domain
Fetching a file: curl, wget The PHP version and settings: PHP under the domain
Reading your own logs in the logs folder Databases: Databases and phpMyAdmin

The shell is limited to your own hosting account. A mistake or a misled tool cannot reach anyone else's site, the server's own files or other subscriptions. Git, Node.js and the PHP version are managed in the panel, as above.

Step 1: How do you turn on SSH access for the subscription?

Switch SSH access to /bin/bash (chrooted) in the subscription's hosting settings.

  1. In Plesk, go to Websites & Domains, open the Hosting & DNS tab and click Hosting (on some layouts, Web Hosting Access).
  2. Under SSH access, change Forbidden to /bin/bash (chrooted).
  3. Note the system user name shown on the same page. That is the SSH user name.
  4. Click OK or Save.

The host to connect to is your domain or the server name in your Noiz welcome email. If the connection needs a port other than the standard one, it is given there too; if in doubt, ask us.

Step 2: How do you make a key for the tool, and only for the tool?

Give the AI tool a key pair of its own, so that you can remove its access without touching yours.

  1. On your computer, create the key:
ssh-keygen -t ed25519 -f ~/.ssh/noiz-claude-code -C "Claude Code, my laptop"
  1. Set a passphrase when asked. Your computer's key agent can remember it for the session.
  2. In Plesk, open SSH Keys under the domain and add the public half (noiz-claude-code.pub), with a name that says which tool and computer it is for.
  3. Test it yourself before the tool does:
ssh -i ~/.ssh/noiz-claude-code [email protected] ls

Replace the user and domain with your own. You should see the folders of your subscription, such as httpdocs and logs. For background on keys, see How to set up SSH key-based authentication on a Linux server.

Step 3: How do you set Claude Code to ask before every command?

Put Claude Code in Manual mode, the standard mode that asks before edits and commands. Recent versions of Claude Code start in an automatic mode, in which a second AI model reviews actions instead of you. For work that reaches a live website, you want to see every command first.

  1. Start Claude Code in a folder on your computer that holds a copy of your site (Step 4).
  2. Press Shift+Tab until the mode shown is Manual. To make it stick, set defaultMode to default under permissions in the project's .claude/settings.json.
  3. Add deny rules for commands it must never run on the server. Type /permissions and add, for example:
{
  "permissions": {
    "defaultMode": "default",
    "deny": [
      "Bash(ssh * rm *)",
      "Bash(ssh * mv *)",
      "Bash(ssh * chmod *)"
    ]
  }
}

Deny rules are a guard rail, not a lock. They match the command as written. The lock is the limit to your own account and your own review of each command. Never use the mode that skips permissions; Anthropic says it offers no protection against prompt injection.

Leave the sandbox off for this work. Claude Code's sandbox, if you turn it on, blocks plain ssh. Leave it off, or allow the SSH commands to run outside it, and rely on the Manual mode instead.

Step 4: Why work on a copy, not on the live site?

The safest pattern is for the tool to change files on your computer, and for you to decide when they go live.

  1. Download a copy of the site or of the folder you want to work on: scp -i ~/.ssh/noiz-claude-code -r [email protected]:httpdocs/wp-content/themes/your-theme ./, or use SFTP in FileZilla with the same key.
  2. Put the copy under Git on your computer (git init, then commit), so that every change the tool makes can be seen and undone.
  3. Ask Claude Code for the change: "In this theme, the mobile menu does not close after a tap. Find the cause and fix it. Show me the diff before you save."
  4. Review the diff. Commit when you are happy.

Then publish in one of two ways:

  • With Git (recommended). Push the repository to a private repository on a Git host such as GitHub or GitLab. In Plesk, open Git under the domain, click Add Repository, choose Remote Git repository and paste its SSH address. Plesk shows an SSH public key to add to the repository as a read-only deploy key. Use Change branch and path to point the deployment at the theme or plugin folder, and choose Automatic deployment with the webhook Plesk gives you, or Manual deployment if you want to press Deploy yourself. Every deployment is a commit you can roll back.
  • By upload. Ask the tool to upload only the changed files with scp or SFTP, and approve each upload. Do not let it delete files on the server.

Step 5: How do you let it read the server safely?

Reading is where SSH is most useful and least risky. Good requests:

  • Read a log. "Over SSH, show me the last 100 lines of logs/error_log for the domain and explain the errors."
  • Find recent changes. "Search httpdocs/wp-content/plugins for files changed in the last two days and list them."
  • Compare with your copy. "Compare the functions.php on the server with my local copy and show the differences."

For WordPress tasks such as updating a plugin or checking core files, use WP Toolkit in Plesk. For a Node.js application, use Node.js under the domain to install packages and restart the application.

How do you revoke the tool's access?

Remove the tool's public key on the SSH Keys page, and delete the private key from your computer. Its access ends at once. Do this when the project ends, when you change computers, and if the tool ever runs a command you did not approve.

Troubleshooting

Symptom Cause and fix
"Permission denied (publickey)" The public key is not on the subscription, the user name is wrong, or SSH access is off for the subscription. Check Step 1 and Step 2.
"Command not found" The SSH session is for files and logs. Use WP Toolkit, Git or Node.js in the panel for WordPress, deployments and Node.js applications.
The tool cannot connect at all, but your own test works Claude Code's sandbox is blocking ssh. Turn it off for this project, or allow the command outside the sandbox.
The tool keeps proposing commands that change the server Stop it, remind it of the pattern in Step 4, and add deny rules for those commands.
Something on the live site changed that you did not approve Remove the key, restore your backup or redeploy the last good commit, and read the session to see what happened.

Read next:

Why this needs sPremium

sLegacy has no shell at all, so an AI coding tool can only upload files there. sPremium includes SSH access limited to your own hosting account, Git deployment, Node.js, your choice of PHP version, WP Toolkit staging and a dedicated PHP pool, so the tool's work and your visitors do not compete with other sites. Compare the shared hosting plans; moving from sLegacy to sPremium is a plan change on the same panel. If you want the server and WordPress looked after for you as well, WordPress Care adds updates, checks and recovery.