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
Last reviewed: 19 October 2026, against the current Claude Code release and Plesk Obsidian on Noiz sPremium hosting.
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.
Switch SSH access to /bin/bash (chrooted) in the subscription's hosting settings.
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.
Give the AI tool a key pair of its own, so that you can remove its access without touching yours.
ssh-keygen -t ed25519 -f ~/.ssh/noiz-claude-code -C "Claude Code, my laptop"
noiz-claude-code.pub), with a name that says which tool and computer it is for.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.
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.
defaultMode to default under permissions in the project's .claude/settings.json./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.
The safest pattern is for the tool to change files on your computer, and for you to decide when they go live.
scp -i ~/.ssh/noiz-claude-code -r [email protected]:httpdocs/wp-content/themes/your-theme ./, or use SFTP in FileZilla with the same key.git init, then commit), so that every change the tool makes can be seen and undone.Then publish in one of two ways:
scp or SFTP, and approve each upload. Do not let it delete files on the server.Reading is where SSH is most useful and least risky. Good requests:
logs/error_log for the domain and explain the errors."httpdocs/wp-content/plugins for files changed in the last two days and list them."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.
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.
| 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:
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.