> ## Documentation Index
> Fetch the complete documentation index at: https://docs.edisglobal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SCP on Windows connects to Linux Server

> Transfer files from Windows to a Linux VPS using SCP and WinSCP. Step-by-step guide covering SSH setup, authentication, and command-line transfers.

## Secure copy files between Windows and Linux servers

SCP (Secure Copy Protocol) is a secure way to transfer files between your Windows machine and a Linux server. This article explains how to use **WinSCP**, a popular and user-friendly tool for Windows users, to copy files to and from a Linux server.

***

## Step 1: enable SSH on the Linux server

Before transferring files, ensure the SSH service is installed and running on your Linux server. Use the following command on the Linux server:

```bash theme={"system"}
sudo apt install openssh-server
```

***

## Step 2: install and set up WinSCP on Windows

1. Download WinSCP from [winscp.net](https://winscp.net/).

2. Install WinSCP by following the on-screen instructions.

3. Launch WinSCP after installation.

***

## Step 3: Connect to the Linux Server

1. In WinSCP, create a new connection:

   * **File Protocol**: Choose `SCP`.

   * **Hostname**: Enter the IP address or domain name of your Linux server.

   * **Port Number**: Default is `22`.

   * **Username**: Enter the username for your Linux account.

   * **Password**: Provide your password or configure a private key.

2. Click **Login** to connect to your server.

***

## Step 4: transfer files

Once connected, use the graphical interface to:

* Drag and drop files from your Windows machine to the Linux server.

* Drag files from the Linux server to your local Windows machine.

WinSCP provides a simple interface to manage your files securely.
