Windows PowerShell allows you to transfer files securely between your computer and your mybox hosting account using SFTP (SSH File Transfer Protocol). SFTP encrypts your connection, protecting your login credentials and files during transfers.
This guide explains how to connect to mybox using the built-in Windows OpenSSH client, upload and download files, and navigate your hosting directories without installing a separate file transfer application.
Table of Contents
Before You Begin
Make sure you have:
- A computer running Windows 10 or Windows 11.
- OpenSSH Client installed on Windows.
- SSH access enabled for your mybox hosting account.
- Your SSH hostname, username, and password.
- An active internet connection.
If SSH is not yet enabled, follow the instructions in How do I activate my SSH account?.
You can find your SSH connection details in the mybox Panel under Advanced → Secure Shell (SSH).
Your connection will use the following settings:
| Setting | Value |
|---|---|
| Protocol | SFTP |
| Hostname | your-login.ssh.mybox.com |
| Port | 22 |
| Username | Your hosting account username |
| Password | Your SSH password |
Replace your-login with your actual hosting username.
Step 1: Check Whether OpenSSH Client Is Installed
Windows 10 and Windows 11 support OpenSSH Client, which provides the sftp command used for secure file transfers.
- Open the Windows Start menu.
- Search for PowerShell.
- Open Windows PowerShell.
- Run the following command:
Get-Command sftp
If OpenSSH Client is available, PowerShell will display information about the sftp executable.
If the command is not recognized, you need to install OpenSSH Client.
Installing OpenSSH Client
- Open Windows Settings.
- Search for Optional features.
- Select the option to add an optional feature.
- Search for OpenSSH Client.
- Select Install.
You can also install it by running the following command in PowerShell as an administrator:
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Once installation is complete, reopen PowerShell.
You only need OpenSSH Client to connect to mybox. Installing OpenSSH Server on your computer is not necessary.
Step 2: Connect to Your mybox Hosting Account
- Open PowerShell.
- Enter the following command:
sftp -P 22 [email protected] - Replace
your-loginwith your mybox hosting username. - Press Enter.
For example, if your hosting username is example123, the command would be:
sftp -P 22 [email protected]
PowerShell will attempt to establish an encrypted SFTP connection to your hosting account.
First-Time Connection Verification
On your first connection, you may see a message similar to:
The authenticity of host 'example123.ssh.mybox.com' can't be established.
This is expected when your computer has not connected to the server before.
The message includes the server’s SSH host key fingerprint. Compare this fingerprint with one obtained from a trusted mybox source before accepting it.
If the fingerprint is correct, type yes and press Enter.
Next, enter your SSH password when prompted.
Your password will not appear on the screen while you type. This is normal behavior.
After successful authentication, you will see the SFTP prompt:
sftp>
This confirms that you are connected to your mybox hosting account.
Important: Commands entered at the sftp> prompt are SFTP commands, not standard PowerShell commands. You can use them to navigate directories and transfer files between your computer and the server.
Step 3: Navigate Your Hosting Directories
Once connected, you can explore the files and directories available in your mybox account.
To display the current remote directory, enter:
pwd
To list the files and folders in that directory, enter:
ls
To navigate to your website’s public directory, use:
cd yourdomain.com/public_html
Replace yourdomain.com with your website’s directory name.
You can run ls again to display the contents of this directory.
The public_html folder normally contains your website’s publicly accessible files, including HTML, PHP, CSS, JavaScript, and media files.
Note: The directory structure may vary depending on your website configuration. If your website uses a custom document root, navigate to that directory instead.
Step 4: Upload Files from Windows to mybox
The put command uploads files from your computer to the remote server.
Before uploading, you can choose which local directory SFTP should use.
Select Your Local Directory
To display your current local directory, enter:
lpwd
To change it, use the lcd command:
lcd "C:/Users/YourName/Documents/website"
Replace YourName with your Windows username and adjust the path to the folder containing your website files.
Upload a Single File
Make sure you are in the correct remote website directory, then enter:
put index.html
This uploads index.html from your current local directory to the current remote directory.
If the file is transferred successfully, SFTP displays information about the transfer progress and completion.
Upload an Entire Folder
To upload a folder and its contents, use the -r option:
put -r assets
This uploads the local assets folder, including its subdirectories and files, to the current remote directory.
Important: Uploading a file with the same name as an existing remote file may overwrite it. Check the destination directory and keep a backup before replacing important website files.
Step 5: Download Files from mybox to Windows
The get command downloads files from your hosting account to your computer.
Download a Single File
First, select the local directory where downloaded files should be saved:
lcd "C:/Users/YourName/Downloads"
Then download a file from the current remote directory:
get index.html
The file will be saved in your selected local directory.
You can confirm the local destination using:
lpwd
Download an Entire Folder
To download a directory and its contents, use:
get -r assets
This downloads the remote assets directory, including its files and subdirectories.
Large transfers may take longer depending on the number of files, their sizes, and your internet connection.
Important: Downloading a file into a directory where a file with the same name already exists may replace the local copy. Use a separate backup directory when downloading files you want to preserve.