How do I SCP from Linux to Windows?

How do I SCP from Linux to Windows?
Answer
To SCP a file to a Windows machine, you need an SSH/SCP server on the Windows.
  • Step 1: Download pscp.
  • Step 2: Get familiar with the pscp commands.
  • Step 3: Transfer file from your Linux machine to Windows machine.
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/File:Tn5250j-linux-screenshot-01.jpg
Linux Copy File Examples
  • Copy a file to another directory. To copy a file from your current directory into another directory called /tmp/, enter:
  • Verbose option. To see files as they are copied pass the -v option as follows to the cp command:
  • Preserve file attributes.
  • Copying all files.
  • Recursive copy.
Recursive means that cp copies the contents of directories, and if a directory has subdirectories they are copied (recursively) too. Without -R , the cp command skips directories. -r is identical with -R on Linux, it differs in some edge cases on some other unix variants.
Read on to find out more.
  • mv: Moving (and Renaming) Files. The mv command lets you move a file from one directory location to another.
  • cp: Copying Files. A basic example of the cp command to copy files (keep the original file and make a duplicate of it) might look like:
  • rm: Deleting Files.
That connection will be securely encrypted, it is a very secure way to copy files between computers. You can use scp to copy files from or to a remote server. You can also copy files from one remote server to another remote server, without passing traffic through your PC.
 

Tìm kiếm

Back
Top