2


I have a remote server and I connect it via PuTTY software.
I've downloaded a file to my Downloads folder in my Windows OS laptop.
Now, I have to transfer this file to that remote server, using SCP Unix command.

Can someone bring me a clear and specified pattern or even an example of that command to my situation ?

Dave M
  • 4,514
  • 22
  • 31
  • 30
Sara Ben Shabbat
  • 59
  • 1
  • 3
  • 7

4 Answers4

3

You can use PSCP to copy files from Windows to Linux.

  1. Download PSCP from putty.org
  2. Open cmd in the directory with pscp.exe file
  3. Type command pscp source_file user@host:destination_file

For example:-

pscp C:\Users\Admin\Desktop\myfile.txt admin@192.168.1.1:/home/path_to_the_folder/

Sukhjinder Singh
  • 1,994
  • 2
  • 9
  • 17
  • If you (or whoever) installed using the recommended MSI (at the top of the chiark page, since maybe a decade now) all the tools (`pscp plink puttygen` etc) are already installed and you don't need to download anything more, and in your PATH so the directory doesn't matter. – dave_thompson_085 Dec 28 '19 at 04:53
1

You can use pscp file user@remotehost:

Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83
1

Try WinSCP Get it here

You can login to the Linux server and transfer files using a GUI.

Deaton
  • 174
  • 1
  • 7
0

You can also use WinSCP from the Windows machine to copy files to or from the linux server.

https://winscp.net/eng/index.php

Note that you will need to setup an ftp server on the linux server if you don't already have one running with this method.

  • Most Linux servers come with a built-in SSH server. That's all you need to connect with WinSCP (using SFTP protocol). – No need to setup an FTP server. – Martin Prikryl Dec 28 '19 at 14:46