How to Upload Files to a Linux VPS from Windows?
In this article, we will explain how to upload local files from a Windows-based PC to a Linux VPS (e.g. CentOS, Ubuntu, Debian, etc.). In this case, the Windows PC will be referred to as the source and the Linux VPS will be referred to as the destination.
also you can use this article to learn how to transfer(upload and download) files to windows VPS.
Here are the steps of uploading file from windows desktop to linux server.
For the purposes of demonstartion, we have created a file on the desktop named “test.txt”.
How to Upload Files to a Linux VPS from Windows?
Open “Run” by pressing the windows key on your keyboard+R or by typing run into the search bar
In the opened window type cmd and press Enter.
How to Upload Files to a Linux VPS from Windows?
Enter the file's directory by typing cd followed by the file path. (In this case, the file is on the desktop, so we write cd desktop).
Use “SCP” command in the same format as shown below to upload the file.
“SCP filename.extension username@server_address:file/path”
3
If this is your first time connecting to the server, Windows will ask you to accept the security alert. Please do so.
Next you will have to enter the destination server's password.
4
Once the correct password has been entered, your file will be uploaded.
To verify that file is transferred, open putty and connect to destination server. Use “Nano” or “vi” editor to open file.