How to Upload a File to Your Server via SCP from your window PC

How to Open PowerShell on Windows

You can open PowerShell easily using either a keyboard shortcut or the Start Menu. Here’s how:


βœ… Method 1: Quick Keyboard Shortcut

  1. Press Windows Key + X

  2. From the menu, select Windows PowerShell or Terminal (Admin)

πŸ” Use “Terminal (Admin)” if you need administrative privileges.


βœ… Method 2: Using the Start Menu

  1. Click the Start Menu (Windows icon at the bottom-left)

  2. Type PowerShell

  3. Click on Windows PowerShell or Windows Terminal from the search results

  4. πŸ” Right-click and choose “Run as administrator” if needed


πŸ§ͺ Example Command to Upload a File to Your Server via SCP

After opening PowerShell, you can use this command to upload a file (e.g. a SQL backup) to your remote server:

powershell
scp "C:\Users\Multiplatforms\Downloads\Compressed\azzawaj_wp2dr5.sql.gz" root@161.97.68.33:/tmp/

This command copies the file from your local Windows machine to the /tmp/ directory on your server.


πŸ’‘ Note: Make sure:

  • You have OpenSSH Client installed (usually preinstalled on Windows 10/11)

  • Your server allows SSH access

  • You replace the file path and IP with the correct details if different

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *