At work, every time you deploy your app, you'll need to copy files from your native Windows server to Linux, and sometimes the files on Linux are copied to the computer, which was previously done using the FTP tool FLASHFXP, and recently there's a quicker way to do this than just command. Combined with the information on the Internet, it is found that PSCP can transfer files between Windows and Linux. The following details describe how to use:
A brief description of PSCP:
PSCP (PuTTY Secure Copy client) is a PuTTY-provided file transfer tool that securely transfers files between two machines via SSH connection and can be used with any SSH (including SSH v1, SSH v2) servers.
Second, download and use
1. Download:
You can download PSCP from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html and put it in the System32 folder of Windows, This makes it possible to invoke it directly in the DOS command window.
2. Use
A Windows-linux Uploading Files:
1), start → run →cmd into DOS mode, enter the following command:
PSCP E:\javaWP\new.txt [Email protected]:/home/hollyfee
2), enter, prompt for the password, after we enter the Linux server on the user's login password, the www.linuxidc.com file will be uploaded to the Linux server/home/hollyfee directory.
Here's how:
C:\Documents and SETTINGS\ADMINISTRATOR>PSCP E:\javaWP\new.txt [email protected]:/home/hollyfee
[email protected] ' s password:
New.txt | 0 KB | 0.0 kb/s | eta:00:00:00 | 100%
C:\Documents and Settings\administrator>
Two Linux-windows Download File:
1), start → run →cmd into DOS mode, enter the following command:
PSCP [Email Protected]:/home/hollyfee/new.txt E:\javaWP\new_copy.txt
2), enter, prompt for password, enter the password after the file will be uploaded to the target machine/home/hollyfee directory.
Where: Hollyfee for the Linux user name, 130.75.7.156 for the remote Linux host IP address,/home/hollyfee/new.txt for Linux files, E:\javaWP\new_ Copy.txt the file to be saved locally.
Here's how:
C:\Documents and Settings\administrator>
PSCP [Email Protected]:/home/hollyfee/new.txt E:\javaWP\new11111.txt
[email protected] ' s password:
New11111.txt | 0 KB | 0.0 kb/s | eta:00:00:00 | 100%
C:\Documents and Settings\administrator>
Using PSCP to implement remote copy files between Windows and Linux servers