How to copy files from Windows machines to Linux machines via pscp

Sometimes I need to copy files from my windows laptop to my Linux server.  One easy way to do is to use pscp. pscp is an SCP client which can run on Windows PCs.

Download pscp from here.

To use pscp, open a windows terminal and go to the directory where pscp was downloaded. If you want to copy files from Windows to Linux, use the following command.

pscp [options] source user@hostname://path

For example,

pscp C:\some_file user_name@

or to upload a whole folder:

pscp -r C:\some_dir user_name@

If you want to copy files from a Linux machine to a Windows machine, use commands like the following:

pscp user_name@ C:\path_to_target_dir



Write a comment

Captcha image


Type the number you see in the image above: