Tag: how to transfer a file from cp to vps

  • 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