Create a server

Working with SSH and SFTP accounts: a guide for clients

Your WPCloud hosting lets you connect to the server via SSH (command line) and SFTP (secure file transfer). That gives you fast, full-fledged access to your data and to a set of professional tools for managing, securing, and developing WordPress. You also get modern AI assistants that can analyze your website, track down problems, or even help you build it from the ground up. And it all happens securely, strictly within your own data.

This guide takes you from creating your account all the way to your first login, and shows you in detail everything your new account can do.

What are SSH and SFTP?

  • SSH (Secure Shell): A secure connection to the server via the command line. With SSH, you can run commands, manage WordPress, work with the database, upload and edit files, run backups, scan your website for malware, or use AI assistants.
  • SFTP (SSH File Transfer Protocol): Secure file transfer. It works much like traditional FTP, but all communication is encrypted. It’s handy for uploading and downloading files with your mouse in apps like FileZilla or WinSCP.

Both use the same login credentials (username and password). Simply pick whichever you need at the moment: the command line, file transfer, or even both at once.

What your account can and can’t do

For security reasons, your SSH account is deliberately confined to your own data.

What you CAN do

  • Have full permissions to your own data (read, create, edit, and delete your website’s files).
  • Use preinstalled professional tools for managing, securing, and developing WordPress (WP-CLI, PHP, Composer, Git, database tools, Wordfence, AI assistants).
  • Upload and download files via SFTP.

What you CAN’T do (and that’s how it should be)

  • You’re not the root user (server administrator). You can’t modify the system, install system packages, or touch the server configuration.
  • You can’t see other people’s websites or other customers’ data. You only see the contents of your own account.
  • The sudo command for elevating privileges isn’t available to you.

Security guarantee: You have full control over your data through secure, preconfigured features. For security reasons, all activity is logged.

How to create an account and connect

1. Creating an SSH account in WPCloud: Setup in the customer panel.

  1. Log in to the WPCloud app.
  2. Open Server detail and choose SSH Accounts.
  3. Click the option to create a new user.
  4. Enter the account details and select the domain the account should have access to.

Once the account is created, you’ll receive the following details: username (login), password, server address (hostname or IP), and port (22 by default). Keep them somewhere safe.

2. Connecting via SSH from Windows: Using PuTTY.

PuTTY is the most widely used SSH client for Windows (free at putty.org).

  1. Download and launch PuTTY.
  2. Enter the server address in the Host Name (or IP address) field.
  3. Leave the port at 22 and set the connection type to SSH.
  4. Click Open (on your first connection, confirm the security key with the Accept button).
  5. Enter your login and then your password (for security reasons, nothing appears in the terminal as you type the password).

3. Connecting via SSH from macOS / Linux: Using the built-in Terminal.

Open the Terminal app and enter the following command (replace the placeholders with your own details):

ssh login@server-address

Enter your password and you’re connected right away.

4. Connecting via SFTP for file transfers: FileZilla or WinSCP.

For easy point-and-click file transfers, use FileZilla or WinSCP:

  1. Set the protocol to SFTP (SSH File Transfer Protocol), not plain FTP.
  2. Host: the server address.
  3. Port: 22.
  4. Username and password: the same as for SSH.

Once connected, you’ll see your files and can upload and download them by dragging and dropping.

Where to find your data

After logging in, you’re in your home directory. You’ll find the linked domain’s files in its own directory; the exact location is shown in WPCloud next to the SSH account in question.

To quickly get your bearings on the command line:

pwd          # prints the directory you're currently in
ls -lah      # lists the files and folders in the current directory
cd /path     # changes to the given directory

Tip: Everything you write to your website’s files gets the correct web server permissions. Anything you upload or edit is immediately visible to your website and WordPress, and they can work with it right away. You don’t have to worry about file ownership or permissions.

Overview of available tools

Your account comes with a complete set of tools, ready to go:

Tool What it’s for
WP-CLI (wp) Managing WordPress from the command line (plugins, themes, database, users, bulk edits).
PHP (php, php-switch) Multiple PHP versions (5.6 to 8.4) with easy switching.
Composer Managing PHP libraries and dependencies.
Git Code version control and deploying your website from a repository.
MySQL client (mysql) Working with the database (or more conveniently via wp db).
Wordfence Scanning your website for malware and known vulnerabilities.
AI assistants (Claude Code, Codex) Analyzing your website, tracking down problems, and building and developing it with AI.
Editors (nano, vim, mc) Editing files directly on the server.
Archives (zip, rar, tar) Compressing and extracting files.
Transfers (rsync, scp, curl, wget) Copying and downloading files.

In-depth guide to the tools

WordPress from the command line (WP-CLI)

WP-CLI (wp) is the official tool for managing WordPress without clicking around in the WordPress admin. It can do practically everything the admin can, just much faster:

wp core version                          # WordPress version
wp plugin list                           # list of plugins and their status
wp plugin update --all                   # updates all plugins
wp user list                             # list of users
wp search-replace 'http://' 'https://'   # bulk replace across the entire database
wp db export backup.sql                  # backs up the database to a file
wp cache flush                           # flushes the cache

PHP and version switching

The server offers multiple PHP versions (5.6 to 8.4). Checking your current version and switching to another one is easy:

php -v                # shows the current PHP version
php-switch list       # lists the available versions (the active one is marked with an asterisk)
php-switch set 8.1    # switches to PHP 8.1

If php -v still shows the old version in the same window after switching, run hash -r.

Composer for managing PHP libraries

Composer keeps the libraries in your project up to date without manual downloads. You’ll mainly use it when you develop custom plugins or themes yourself.

composer --version                 # checks that it works
composer install                   # installs the libraries listed in composer.json
composer update                    # updates the libraries to the latest allowed versions
composer require vendor/package    # adds a new library to the project
composer dump-autoload             # regenerates the autoloader after you add your own classes

Before running Composer, select the PHP version you need with php-switch.

Git for version control and website deployment

Git tracks the history of your changes and makes it easy to deploy your website from a repository (GitHub, GitLab).

git clone https://github.com/user/project.git       # clones the repository to the server
cd project
git status                                            # shows the changes
git pull                                              # pulls the latest changes
git log --oneline -10                                 # history of the last 10 changes

If you edit code directly on the server:

git add .                          # stages the changed files
git commit -m "change description" # records the change in the history
git push                           # pushes the changes back to the repository

HTTPS access to repositories is preconfigured on the server, certificates included, so git clone and git pull work right away.

Wordfence for malware scanning

Right from the command line, you can scan your website and uncover injected files or outdated plugins with security holes.

Before your first scan, activate the free license (a one-time step):

wordfence configure --request-license --accept-terms --workers 1 --default -o

Start a scan with these commands:

wordfence malware-scan /path/to/site     # looks for malware and compromised files
wordfence vuln-scan    /path/to/site     # looks for known vulnerabilities in plugins and themes

If you’re already in your website’s directory, you can use a dot (.) instead of the path.

AI assistants: Claude Code and Codex

You can install AI coding assistants right in your account: Claude Code (by Anthropic) and Codex (by OpenAI). They understand your website, read and edit files, run commands, and carry out tasks written in plain language.

Installation and login

Your account includes ready-made installation scripts:

install-claude.sh      # installs or updates Claude Code
install-codex.sh       # installs or updates Codex

To use them, you need an account with the respective service. Set your API key in the terminal:

export ANTHROPIC_API_KEY=sk-...      # for Claude Code
export OPENAI_API_KEY=sk-...         # for Codex

To keep the key set even after you log out, add the corresponding export ... line to the end of your ~/.bashrc file.

What you can do with AI

  • Website analysis: Check the structure, review the code for security risks, or uncover the causes of slow loading.
  • Finding and understanding malware: When Wordfence flags a suspicious file, the AI explains what it does and helps you clean things up.
  • Bug fixing: Describe the problem (for example, a 500 error after a plugin update), and the AI tracks down the cause in the logs and code, then suggests a fix.
  • Website building and development: The AI can create a plugin, modify a theme, or add a new feature right on the server.
  • Routine tasks: Bulk content edits, code refactoring, or test data generation.

An example of working with AI

cd /path/to/site
claude                 # launches Claude Code (or type 'codex')

From there, you can simply talk to it in plain English:

  • “Check this WordPress site for security issues and list them from most to least severe.”
  • “Create a plugin that adds an estimated reading time to every post.”
  • “The site is slow. Find the main causes and suggest how to speed it up.”

A note on costs and security: The AI runs only within your account and is subject to the same security restrictions as you are. You pay Anthropic or OpenAI directly for API usage, according to their pricing. Before making larger changes, we recommend backing up the database (wp db export) and using Git.

A typical workflow

Here’s how the individual tools fit together, from deployment to maintenance:

# 1) Clone the site from the repository
git clone https://github.com/user/my-site.git
cd my-site

# 2) Install the PHP libraries
composer install

# 3) Select the right PHP version
php-switch set 8.2

# 4) Set up and check WordPress
wp core version
wp plugin list

# 5) Check security
wordfence malware-scan .

# 6) Need help? Bring in the AI
claude

Frequently asked questions (FAQ)

  • What software do I need to connect?
    For the command line (SSH), use PuTTY on Windows and the built-in Terminal on macOS and Linux. For file transfers (SFTP), use FileZilla or WinSCP.
  • Which port and address do I connect to?
    You’ll find the server address and port (22 by default) in WPCloud, in the SSH account details.
  • I forgot my password.
    You can reset your password at any time in WPCloud, in the SSH account details.
  • I get a “Permission denied” message or can’t open some folders.
    Your account only gives you access to your own data. System folders and other users’ folders are off-limits for security reasons.
  • Can I install system packages or use sudo?
    No. The account isn’t root and doesn’t have access to the sudo command. Instead, you use the preinstalled set of tools.
  • Do the AI assistants cost extra?
    Installing and running them on the server is free. However, you need your own account with Anthropic or OpenAI, where API usage is billed according to their pricing.
  • Can I access multiple websites?
    Each account’s access is tied to the domain selected when it was created. For another website, create another SSH account in WPCloud.
  • What’s the fastest way to upload my website to the server?
    For small changes, drag and drop via SFTP; for larger projects, use git clone or rsync.

Security guidelines

  • 1. Never share your password or API keys with anyone, and don’t store them in plain text.
  • 2. Use a strong, unique password.
  • 3. Make a backup before larger changes, and ideally keep your website under version control with Git.
  • 4. Log out when you’re done (use the exit command in SSH, or disconnect in your SFTP client).
  • 5. All account activity is logged for your security and ours.

You might also like

We support PHP 8.6

We support PHP 8.6

We’re happy to announce that we’re preparing support for the upcoming PHP 8.6 release. What does it mean for your sites in practice, and why should you care about this version? Faster response and lower server load Every PHP generation…

Read more
Critical PHP vulnerability: check the PHP version on your managed server

Critical PHP vulnerability: check the PHP version on your managed server

Today, October 21, 2026, the PHP team is releasing an emergency security update. It fixes two critical flaws in the PHP core that could allow an attacker to run their own code on the server. As soon as it’s out,…

Read more
Migrating your website to WPCloud with a plugin

Migrating your website to WPCloud with a plugin

The WPCloud Migrator plugin moves a WordPress website from any hosting provider to a WPCloud server. It transfers your files, database, plugins, themes, media library, and configuration. You don’t need FTP or SSH access, and even large websites are no problem —…

Read more