Using PSCP to implement remote copy files between Windows and Linux servers

Source: Internet
Author: User
Tags windows download pscp secure copy

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.